hsm-hx / git-practice

Git完全理解するぞ
0 stars 0 forks source link

rebase意味不明さっさと滅んでくれ #5

Closed hsm-hx closed 5 years ago

hsm-hx commented 5 years ago

挙動を確かめましょう

hsm-hx commented 5 years ago

git rebase [basebranch] [topicbranch]

hsm-hx commented 5 years ago

rebaseしたあとにはfast-forward mergeをしないといけないっぽい?

hsm-hx commented 5 years ago

chechoutしないといけないときとしなくて大丈夫なときの違いわからん詰んだ

hsm-hx commented 5 years ago

topicbranch上からrebaseするとき

git rebase [basebranch] [topicbranch]
git checkout [basebranch]
git merge [topicbranch] # ff merge

今いるブランチがbasebranchであるかtopicbranchであるかによって使うべきrebaseコマンドの書式が違うらしい