【问题标题】:Error during cloning project and can't unset credentials克隆项目期间出错,无法取消设置凭据
【发布时间】:2016-07-06 15:31:49
【问题描述】:

当我尝试克隆我的项目时,我找到了问题的解决方案,它显示错误的用户/密码,但在尝试使用命令取消设置凭据时:

git config --system --unset credential.helper

错误存在为:

Could not lock config file C:\Program Files\Git\mingw64/etc/gitconfig:Permission denied
Could not lock config file C:\Program Files\Git\mingw64/etc/gitconfig:Invalid argument

【问题讨论】:

  • 某些东西可能锁定了gitconfig 文件。您是否尝试过重新启动 bash 以查看是否可以解决问题?
  • 不,我会按照你说的重新启动,看看结果谢谢!

标签: git


【解决方案1】:

类似to this comment,尝试以管理员身份重启“C:\Program Files\Git\git-bash.exe”。

这应该允许您修改系统 git 配置文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-10-27
    • 2013-11-27
    • 1970-01-01
    • 2011-02-08
    • 2023-03-25
    • 2020-06-30
    • 2012-06-05
    • 1970-01-01
    相关资源
    最近更新 更多