Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error was raised by libgit2. Category = 21 (MergeConflict)

I am using VS 2013.

I am stuck. Everything is committed to my local repository. I try to pull from remote and I get the following error:

An error occurred. Detailed message: An error was raised by libgit2. Category = 21 (MergeConflict). 1 uncommitted change would be overwritten by merge

I have no uncommitted changes...that I'm aware of.

like image 782
TheRealDanBiss Avatar asked Mar 27 '14 19:03

TheRealDanBiss


2 Answers

Looks like running git pull from the command prompt allowed me to execute the pull. I was unfamiliar with the command prompt.

like image 60
TheRealDanBiss Avatar answered Nov 05 '22 19:11

TheRealDanBiss


Typically, you will see this message when you have modified a file, but not staged the changes, and the merge you are attempting would write to that file. Visual Studio 2013, unfortunately, contains a bug where it determines that your file is modified even though it is not. The bug manifests when you have a file in your repository that has line endings that disagree with what should have been produced, given your core.autocrlf settings.

This bug is fixed in Visual Studio 2013 Update 2: http://support.microsoft.com/kb/2927432

like image 3
Edward Thomson Avatar answered Nov 05 '22 19:11

Edward Thomson