git 提交代码 如果有冲突 如何解决

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Alex81320/article/details/85244003
  1. git add .
  2. git commit -m '.........'
  3. git pull --rebase #获取最新代码 (如果有冲突,继续一下步骤,如果无 直接git push)
  4. git status (查看冲突的文件)
  5. git add (修改冲突文件后,添加文件到缓存区)
  6. git rebase --continue 
  7. git commit --amend 
  8. git push

猜你喜欢

转载自blog.csdn.net/Alex81320/article/details/85244003