Latest Update brings Github error on pull, push, or sync

前端 未结 11 608
执念已碎
执念已碎 2020-12-25 12:39

In Visual Studio 2019, we have been using the GitHub extension successfully since before release. Now, all of the sudden, when we push, pull, or sync, we receive the follow

相关标签:
11条回答
  • 2020-12-25 13:22

    Delete the file config file from C:\ProgramData/Git directory and try again.

    0 讨论(0)
  • 2020-12-25 13:23

    I had this problem with Git 2.24.0.2 and visual studio 2019 - 16.2.3. I couldnt create the path and config file in c:/ProgramData/git/, as I dont have admin rights. It turned out that the windows credentials stored are expired for my user account and when updated using control panel > user accounts > credential manager > Generic credentials for git helped to resolve the issue in my case

    0 讨论(0)
  • 2020-12-25 13:27

    Uninstall Git and install a downgraded version. The version that shows this problem is the 2.23.0. Downgrade it to the 2.22.0 and it works fine without this problem.

    Git releases: All git releases Git 2.22.0: Version without this issue

    0 讨论(0)
  • 2020-12-25 13:29

    I fixed it by going to Visual Studio Installer, choosing individual component and searching for "Git". In my case the "Git for Windows" and "GitHub Extension for Visual Studio" was now unchecked/not installed for some reason..

    These are the extensions I needed: Visual Studio Installer Git

    Installing those create the ProgramData\Git\config file and the error was gone.

    0 讨论(0)
  • 2020-12-25 13:33

    You should check if 'C:\ProgramData/Git/config' actually exists. If it doesn't you can just create it and paste the following into the file:

    [core]
        symlinks = false
        autocrlf = true
        fscache = true
    [color]
        diff = auto
        status = auto
        branch = auto
        interactive = true
    [help]
        format = html
    [rebase]
        autosquash = true
    

    This worked for me.

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