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

前端 未结 11 607
执念已碎
执念已碎 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:11

    Delete or rename the existing file at that location is also an option. It looks like it's parts of some lower level windows (or MSYS2/Cygwin) security that's brought in via libgit.lib.

    Why the created file has the wrong owner is not yet known.

    Who/what is the owner for that existing file? What language is in use?

    It's been noted as an issue at https://github.com/git-for-windows/git/issues/2304 but isn't resolved yet.

    0 讨论(0)
  • 2020-12-25 13:12
    • Select "Tools" in Visual studio
    • Select "Get_tools_and_features"-->It will open the visual studio installer
    • Click on the "Individual_components" tab in visual studio installer
    • Go to "Code_tools" and check "GitforWindows" and "GitextensionforVisualStudio"
    • Install these two to resolve this issue.

    99% sure that above steps will fix the error.

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

    The "Git" folder was missing from the path c:/ProgramData/Git/Config. I created the folder (not the config file) and it worked fine

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

    Try using Visual Studio GIT extension and open Visual Studio as Administrator if you face below issue

    warning: unable to access 'c:\programdata/git/config': permission denied warning has a dubious owner: '(unknown) git please transfer ownership to an administrator github config has a dubious owner

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

    I had the same problem and I tried some of the tips given above but the problem keep existed. Then I directly went and updated the visual studios Installer and the problem fixed.

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

    We ran into this exact issue after upgrading Git to version 2.23.0.windows.1 on our build agents.

    The fix that worked for us was to change the owner of C:\ProgramData/Git/config to Administrators. Note that this is different to the Administrator user!

    To do this, right-click on C:\ProgramData/Git/config and select Properties then the Security tab.

    And click Advanced...

    Use the Change link to set the owner to Administrators.

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