码迷,mamicode.com
首页 > 其他好文 > 详细

提交冲突解决

时间:2020-07-29 12:45:53      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:ack   erp   nod   because   ted   hang   led   commit   name   

一、将本地文件修改后push到远程分支有时会出现  devlops|MERGE

 

git add .

git commit -m "feat:优惠券功能"

git pull

........... (devlops|MEARGE)

git add .

git commit -m "feat:优惠券"

git push

 

 

二、push的时候出现rejected

$ git push -u origin branchName

To https://gitlab.hangjia.online/changqing/vue-node.git
 ! [rejected]        case -> case (non-fast-forward)
error: failed to push some refs to ‘https://gitlab.hangjia.online/changqing/vue-node.git‘ hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: ‘git pull ...‘) before pushing again. hint: See the ‘Note about fast-forwards‘ in ‘git push --help‘ for details. # 可以尝试强制push
$ git push -u origin branchName -f

  

 

提交冲突解决

标签:ack   erp   nod   because   ted   hang   led   commit   name   

原文地址:https://www.cnblogs.com/hongzhuang/p/13395972.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!