Created
February 24, 2015 13:29
-
-
Save vangie/497fcae30b326c8dac35 to your computer and use it in GitHub Desktop.
initial git repo of hongbao
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ -d hongbao ] && rm -rf hongbao | |
mkdir hongbao | |
cd hongbao | |
git init | |
git config user.name "duwan" | |
git config user.email "[email protected]" | |
touch README.md | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin [email protected]: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/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
好!