Git cheat sheet: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4: Line 4:
   cd hoge
   cd hoge
   git init
   git init
   touch README
   touch README.md
   git add README
   git add README.md
   git commit -m 'first commit'
   git commit -m 'first commit'
   git remote add origin git@github.com:fuga/hoge.git
   git remote add origin git@github.com:fuga/hoge.git
   git push -u origin master
   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