Bul*_*are 8 git github visual-studio visual-studio-2019
自Visual Studio 2019发布以来,我们一直在成功使用GitHub扩展。现在,突然之间,当我们推,拉或同步时,我们会在“输出”窗口中收到以下信息:
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.
Run Code Online (Sandbox Code Playgroud)
小智 21
您应该检查“ C:\ ProgramData / Git / config”是否确实存在。如果不是,则可以创建它并将以下内容粘贴到文件中:
[core]
symlinks = false
autocrlf = true
fscache = true
[color]
diff = auto
status = auto
branch = auto
interactive = true
[help]
format = html
[rebase]
autosquash = true
Run Code Online (Sandbox Code Playgroud)
这对我有用。
99% 确定上述步骤将修复错误。
小智 5
我通过转到 Visual Studio 安装程序,选择单个组件并搜索“Git”来修复它。在我的情况下,“Windows 版 Git”和“Visual Studio GitHub 扩展”现在由于某种原因未选中/未安装。
这些是我需要的扩展: Visual Studio Installer Git
安装这些会创建 ProgramData\Git\config 文件,错误消失了。
| 归档时间: |
|
| 查看次数: |
10856 次 |
| 最近记录: |