Github failed to sync branch
Asked Answered
M

3

11

I'm using W7 64 bi , and just got an error from the github client app. It says:

failed to sync branch. you might need to open a shell and debug the state of this repo.

What do I do now ?

Masked answered 26/2, 2013 at 6:30 Comment(1)
Pop open a terminal, do git status, check the state of the branch. Then consult a reliable git guide in case you're in a state of conflict.Innovation
P
6

I know this will sound crazy, but try restarting your computer.

This happend to me yesterday; I was getting this error, and upon checking: \AppData\Local\GitHub\TheLog.txt

I found messages like:

AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\bin\sh.exe:
*** Couldn't reserve space for cygwin's heap, Win32 error 0

The problem comes around to GitHub for Windows updating itself (in particular the cygwin-ized PortableGit) in the background while I was using it. Ultimately, some cygwin dlls from the previous PortableGit dlls were still loaded in memory causing errors when trying to execute the new (updated) PortableGit commands.

Restarting cleared out all the previously loaded cygwin dlls.

Pisistratus answered 19/6, 2013 at 22:49 Comment(0)
P
1

You might have a more complex problem than my answer can solve, but -- for anyone else who comes across this question -- some basic solutions can be found in this video. In short, status.github.com, git status, and gitstatus are your friends. See what they tell you and then continue your sleuthing with that new information in mind. You can use these tools using Git Shell that comes with the Github Windows client.

I'll note that my own problem stemmed from trying to sync a file that was too large: I only found this by using the Git Shell, which gave me the error when I tried git sync. I'm currently looking for ways to remove the file in question in previous commits so I can sync my repo appropriately. The guide I am currently following can be found here, and if it seems to be taking me in the right direction (it was actually recommended in the Git Shell error message!)

Panaggio answered 18/3, 2015 at 15:27 Comment(0)
S
0

I had this error before, and I fixed it by reinserting the credentials for my github account. Turns out that github logged me out for some reason

Smoothbore answered 2/3, 2016 at 11:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.