git fetch B + merge B和merge origin/B有什麼區別?有什麼區別git fetch B + git merge B vs git merge origin/B
$ git fetch origin develop
From [...]
* branch develop -> FETCH_HEAD
$ git merge develop
Already up-to-date.
$ git merge origin/develop
error: Your local changes to the following files would be overwritten by merge
...
在上述序列中我期望合併到輸出相同,但結果是不同的。我預計「fetch」命令會在本地檢索遠程分支,以便它可用於本地合併操作。提取完成後,我期望從本地分支合併成爲從原點合併的平等操作。這個期望我錯了嗎?
忘了提,我在功能/ XXX分支 – shamil