Git cheat sheet

From misc notes
Revision as of 16:08, 31 May 2012 by Nxhack (talk | contribs)
Jump to navigation Jump to search

github で repository つくったら手順がでてくる

 mkdir hoge
 cd hoge
 git init
 touch README.md
 git add README.md
 git commit -m 'first commit'
 git remote add origin git@github.com:fuga/hoge.git
 git push -u origin master


編集後

git add README.md
git commit -m 'message here'
git push

rename

git mv README.md README
git commit -m 'message here'
git push