Then "git merge topic" will replay the changes made on the topic branch since it perged from master (i.e., E) until its current commit (C) on top of master,and record the resultil its current commit (C) on top of master,and record the result in a new name along of the two parent commits and a log message from the user describing the changes.
沒有錯…
如果你使用
git help merge
,就会看到git merge
的文檔。然後它提到:
merge前
merge後
所以說,那個commit message是自動加入的。
如果你實在討厭這個commit,可以在merge時加上
--no-commit
。這樣就不會產生commit message了。不過我不推薦這麼做,這樣的話,就不容易分辨merge的結果了。