使用rebase后重新从远程分支拉代码后产生无意义commit的解决办法.md

使用rebase后重新从远程分支拉代码后产生无意义commit的解决办法

  1. 使用rebase在本地合并分支后,m明显和远程分支冲突了,必须要重新从远程分支pull代码才能提交,如果直接使用git pull命令,则会产生类似于merge branch 'develop' of into develop的无意义的commit,
  2. 解决办法是使用git pull --rebase,也可以使用git pull -f强制提交,但是必须慎重又慎重,确保本地的代码是最新的。