Github Windows 'Failed to sync this branch'

前端 未结 17 1206
南旧
南旧 2020-12-22 21:59

I am using Github Windows 1.0.38.1 and when I click the \'Sync\' button after committing, I get the error

\"ent

相关标签:
17条回答
  • 2020-12-22 22:46

    I had the same issue, and "git status" also showed no problem, then i just Restarted the holy GitHub client for windows and it worked like charm.

    0 讨论(0)
  • 2020-12-22 22:48

    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.

    0 讨论(0)
  • 2020-12-22 22:48

    I had the same problem. In my case git could not find the global variable %HTTP_PROXY%, simply because Windows was not providing/using it.

    I solved it by excluding the variable from the git config file (located in %USERPROFILE%\.gitconfig):

    [http]
    #   proxy = %HTTP_PROXY%
    
    0 讨论(0)
  • 2020-12-22 22:50

    I had the same issue. I removed the repo from the GitHub Windows client (right-click menu) and re-added it. When I re-added, I noticed I had about 300 uncommitted changes and it was reporting a memory error. I discarded all the changes and then sync started working fine again. (Rookie Git user - I'm sure there are better ways to do this on the command line)

    0 讨论(0)
  • 2020-12-22 22:52

    Have you changed your Windows password recently, or at least the one you use to connect to your proxy?

    This was my problem, and git status couldn't help me. I had to change my login credentials in the ".git/config" file to get past this error.

    0 讨论(0)
  • 2020-12-22 22:56

    The debug log may provide some insight. I'm using v3.3.4.0, your experience may differ but should be similar. From the settings menu choose 'About Github Desktop...'. Click the link to view the debug log. In my case there was a very clear error:

    *** fatal error - cygheap base mismatch detected - 0x1157408/0x1167408. This problem is probably due to using incompatible versions of the cygwin DLL.

    It even provided some helpful tips to solve the problem.

    I'm not sure why this information isn't exposed in the error prompt, but at least it was available.

    0 讨论(0)
提交回复
热议问题