Latest Update brings Github error on pull, push, o

2020-05-20 03:43发布

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 following in the Output window:

Warning: 'C:\ProgramData/Git/config' has a dubious owner: '(unknown)'.
For security reasons, it is therefore ignored.
To fix this, please transfer ownership to an admininstrator.

10条回答
啃猪蹄的小仙女
2楼-- · 2020-05-20 04:08

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

查看更多
狗以群分
3楼-- · 2020-05-20 04:11

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

查看更多
smile是对你的礼貌
4楼-- · 2020-05-20 04:14

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

查看更多
聊天终结者
5楼-- · 2020-05-20 04:16

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

查看更多
forever°为你锁心
6楼-- · 2020-05-20 04:19

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.

查看更多
闹够了就滚
7楼-- · 2020-05-20 04:21

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.

查看更多
登录 后发表回答