основы git rebase

Я начал использоватьgit rebase в последнее время, и я не уверен на 100%, правильно ли я это делаю. Ради вопроса, есть две ветви в происхождении,master а такжеnext, который был разветвлен отmaster.

С момента последней синхронизации между ними,master было 2 коммита иnext 6:

$ git log --oneline origin/next..origin/master
59b5552 master commit #2
485a811 master commit #1

$ git log --oneline origin/master..origin/next
4ebf401 next commit #6
e9b6586 next commit #5
197ada0 next commit #4
4a2c3c6 next commit #3
040a055 next commit #2
84537bf next commit #1

Когда я оформляю заказnext и выполнитьgit rebase -i origin/masterЯ получаю следующее:

$ git status
# On branch next
# Your branch and 'origin/next' have diverged,
# and have 8 and 6 different commits each, respectively.

И, наконец, после выполненияgit pull --rebase, два совершает изmaster находятся вnext:

$ git log --oneline origin/next..next 
8741d09 master commit #2
485a811 master commit #1

Вопросы:

Is this correct approach? Why are there 8 and 6 different commits until pull --rebase is run? Is it possible to simplify the flow?

Весьма признателен :)

Ответы на вопрос(2)

Ваш ответ на вопрос