rebase 練習題

練習題:重新指定基礎位置

Step1

git clone https://github.com/alincode/git-rebase-sandbox1.git
cd git-rebase-sandbox1
git remote rm origin

Step2

git checkout develop
git rebase master

Step3

git checkout master
git merge develop

2. 情境:合併 commit

Step1

git clone https://github.com/alincode/git-rebase-sandbox2.git
cd git-rebase-sandbox2
git remote rm origin



Step2

git rebase -i HEAD~3
// or
git rebase -i 124519e



Step3



Step4



Step5