Github Windows 'Failed to sync this branch' Github Windows 'Failed to sync this branch' git git

Github Windows 'Failed to sync this branch'


When it says that, just open the shell and do git status. That will give you a decent idea of what could be wrong and the state of your repo.

I can't give you a specific error for this as it happens for many reasons in Github for Windows, like say some problem in updating submodules etc.


This error comes because of a merge conflict in files. I faced it after I had updated my Maven Project's pom.xml but didn't commit it. Using

git statuserror: Your local changes to the following files would be overwritten by merge:<my project>/pom.xmlPlease, commit your changes or stash them before you can merge.Aborting

as the above post suggested helped finding any conflicting changes and you can decide to discard or commit.


I had the same problem. It happened to me because of some conflicting changes. I removed the local repository of my project from my desktop and then cloned it again from the github website (using clone option in my account), the error was gone.