Skip to content

Instantly share code, notes, and snippets.

@shenqi
Created September 14, 2010 00:55
Show Gist options
  • Save shenqi/578349 to your computer and use it in GitHub Desktop.
Save shenqi/578349 to your computer and use it in GitHub Desktop.
#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