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

6.1、解决冲突

时间:2016-01-12 01:13:00      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:

$ git merge feature1  快速合并
$ git merge feature1
Auto-merging readme.txt
CONFLICT (content): Merge conflict in readme.txt
Automatic merge failed; fix conflicts and then commit the result.

 Git告诉我们,readme.txt文件存在冲突

git status也可以告诉我们冲突的文件:

 

$ git status
# On branch master
# Your branch is ahead of origin/master by 2 commits.
#
# Unmerged paths:
#   (use "git add/rm <file>..." as appropriate to mark resolution)
#
#       both modified:      readme.txt
#
no changes added to commit (use "git add" and/or "git commit -a"

Git用<<<<<<<=======>>>>>>>标记出不同分支的内容,

 

$ git log --graph --pretty=oneline --abbrev-commit 用带参数的git log也可以看到分支的合并情况:

 

6.1、解决冲突

标签:

原文地址:http://www.cnblogs.com/Mander/p/5123033.html

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