Git cheat sheet: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
git pull 元のリポジトリ master |
git pull 元のリポジトリ master |
||
git push |
git push |
||
ブランチを切る |
|||
git checkout -b new_branch |
Revision as of 05:38, 27 August 2015
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
fork して放置したリポジトリを元のリポジトリと合わせる
git pull 元のリポジトリ master git push
ブランチを切る
git checkout -b new_branch