2: Aborting A Merge( Merge Conflicts )

When a merge conflict occurs, git adds markup lines to the files that have conflicts that identify where the conflicts are. These lines can prevent code from executing properly, because they can't be interpreted by the Python interpreter. Because of this, it's important to immediately resolve conflicts and remove the markup.

One way to resolve a conflict is to abort the merge. This doesn't actually merge the files together, but instead stops attempting to merge them. This can be done with git merge --abort.

Aborting the merge is usually an action you would take if you merged one branch into another by accident, or want to deal with large merge conflicts another way. When you abort a merge, git resets the state of the working directory and git history to the state before you tried to merge.

Instructions

  • Abort the merge from the last screen that had conflicts

 

/home/dq/chatbot$ cd /home/dq/chatbot                                           

/home/dq/chatbot$ git merge --abort                                             

转载于:https://my.oschina.net/RobertPattins/blog/747109

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值