运行git status命令,出现如下的提示:
Your branch and 'origin/master' have diverged, and have 1 and 1 different commit each, respectively. (use "git pull" to merge the remote branch into yours)
如果直接运行git pull命令,会产生一个额外的commit:
Merge branch 'master' of ...
请问如何在不产生额外commit的情况下进行merge?
用 git rebase origin/master 解决了问题
0-0,让我猜猜看。有分支了,可以合并分支吗?git merge...
然后再推送试试。
git merge会产生额外的commit
git pull
然后
git rebase