Created
September 14, 2010 00:55
-
-
Save shenqi/578349 to your computer and use it in GitHub Desktop.
This file contains 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
#initialize | |
git config --global user.name hoge | |
git config --global user.email hoge@example.com | |
#delete ゴミ files | |
find . -name .DS_Store -print -delete | |
#find . -name Thumbs.db -print -delete | |
#ignore setting | |
echo /hoge/hoge > .gitignore | |
echo /hoge/*.txt >> .gitignore | |
#initializing git repository (first commit) | |
git init | |
git add . | |
git commit -a -m 'first commit' | |
git remote add origin git://github.com:hoge/foo.git | |
git push origin master | |
#push changes | |
git add . | |
git commit -a | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment