Skip to content

Instantly share code, notes, and snippets.

@vangie
Created February 24, 2015 13:29
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vangie/497fcae30b326c8dac35 to your computer and use it in GitHub Desktop.
Save vangie/497fcae30b326c8dac35 to your computer and use it in GitHub Desktop.
initial git repo of hongbao
#!/bin/bash
[ -d hongbao ] && rm -rf hongbao
mkdir hongbao
cd hongbao
git init
git config user.name "duwan"
git config user.email "duwan@coding.net"
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin git@coding.net:duwan/hongbao.git
git checkout -b vangie/1
echo "The last is ${1:7:1}" > README.md
git add README.md
git commit -m "isnt here"
git push -u -f origin vangie/1
git checkout master
git branch -D vangie/1
git reflog expire --expire=now --all
git gc --prune=now
echo "The first is ${1:0:1}" > README.md
git add README.md
git commit -m "add first"
echo "The second is ${1:1:1}" > README.md
git add README.md
git commit -m "commit"
git reset --hard HEAD^
echo "The third is ${1:2:1}" > README.md
git stash -u
git checkout -b vangie/l
echo "The fifth is ${1:4:1}" > README.md
git add README.md
git commit -m "commit"
git checkout master
git push -u -f origin master
git tag 1.0 -m "The sixth is ${1:5:1}"
echo "The seventh is ${1:6:1}" > README.md
git add README.md
echo "The first is ${1:0:1}" > README.md
git config The.fourth.is "${1:3:1}"
cd ..
rm -f _
tar -zcf _ hongbao/
@int64ago
Copy link

好!

@MewX
Copy link

MewX commented Feb 5, 2016

又到一年红包时

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment