gitエラーを1回記録

1237 ワード

git pullで次のエラーが発生しました.
 
pull is not possible because you have unmerged files. please fix them up in the work tree

 
解決策:
 
まずgit statusでどのファイルが競合しているかを確認します.たとえば、次のようにします.
➜  butler git:(master) ✗ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 38 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)
You have unmerged paths.
  (fix conflicts and run "git commit")
Changes to be committed:
	modified:   butler-console/pom.xml
Unmerged paths:
  (use "git add <file>..." to mark resolution)

	both modified:   butler-tlog/src/main/resources/biz.properties

 
そのうち/biz.properties競合、ファイルを編集して競合を解決した後、
 
git add butler-tlog/src/main/resources/biz.properties && git commit -m "removed merge conflicts"
タグの競合が解決しました.
 
参照先:
http://stackoverflow.com/questions/26376832/why-does-git-say-pull-is-not-possible-because-you-have-unmerged-files
http://www.cnblogs.com/highriver/archive/2012/01/06/2314175.html