我正在使用几个存储库,但最近我只是在内部工作,一切都很棒.
今天我不得不承诺并将代码推送到其他代码中,但我遇到了一些麻烦.
$ git push appharbor master
error: The requested URL returned error: 403 while accessing https://gavekortet@appharbor.com/mitivo.git/info/refs?service=git-receive-pack
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
我无能为力,这将再次带来密码输入.
如何重置系统上的凭据,以便Git会询问我该存储库的密码?
我试过了:
git config --global --unset core.askpass为了取消设置密码
git config credential.helper 'cache --timeout=1'为了避免凭证缓存......
似乎没有任何作用; 有没有人有更好的主意?
我按照这些说明来写信,包括有关密码缓存的部分.似乎说明是错误的,因为每次git push origin master我收到此错误:
git: 'credential-cache' is not a git command. See 'get --help'.
Run Code Online (Sandbox Code Playgroud)
...此时我被迫输入我的用户名和密码.这样做之后,我再次收到相同的错误消息,然后是输出git push.
这是我的.gitconfig文件的内容:
[user]
name = myusername
email = myusername@myemaildomain.com
[credential]
helper = cache
Run Code Online (Sandbox Code Playgroud)
要清楚,在我安装Git并运行Git Bash之后,这就是我输入的内容:
git config --global user.name "myusername"
git config --global user.email "myusername@myemaildomain.com"
git config --global credential.helper cache
Run Code Online (Sandbox Code Playgroud)
请帮忙.这太令人沮丧了!
我有git代理配置为'http.proxy = http:// userId:pwd @ 123 @ipaddress:port'但是在克隆远程项目时,我收到错误
Cloning into git...
error: Couldn't resolve proxy '123@ipaddress' while accessing http://git.kernel.org/pub/scm/git/git.git/info/refs
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
如何逃避密码中的'@'字符?
请注意:我无法更改密码.
我尝试推送到我的存储库,但我收到了以下错误
git push origin master
remote: Permission to PhanVanLinh/phanvanlinh.github.io.git denied to edgarphan.
fatal: unable to access 'https://github.com/PhanVanLinh/phanvanlinh.github.io.git/': The requested URL returned error: 403
Run Code Online (Sandbox Code Playgroud)
之前,我使用的是用户名,edgarphan但我已将其更改为PhanVanLinh但仍保留edgarphan.我试图删除项目并再次克隆,卸载git并重新安装,但它将无法正常工作.
我该如何解决这个问题?任何帮助或建议将非常感谢.
我已使用VSCode克隆了我的GitHub存储库之一,并进行了一些提交。当我完成第一次提交时,VSCode要求我提供我的GitHub密码。
我已经重新启动了计算机,现在可以像以前一样进行提交了,但是VSCode不会要求输入密码。似乎密码已存储。但是这台计算机不是我的计算机,我不希望其他人可以使用我的帐户。
如何使VSCode忘记我的GitHub密码?
我尝试过git命令吗?
git config --global --unset-all user.email
Run Code Online (Sandbox Code Playgroud)
但是VSCode仍然让我无需询问即可提交。
有没有办法执行上述操作(从 bash CLI 中删除我添加的/我有权访问的所有存储的凭据),而不管凭据是如何存储的?
我使用了许多不同的公共计算机,最好不必弄清楚 git 的安装和凭据是如何在每台计算机上工作的。
简短的 google/SO 搜索没有结果
我已经在 Windows 7 64 位中很好地设置了 GitforWindows,并将凭据管理器设置为“Wincred”。
然而,当我运行一些命令(例如git remote prune origin在 GitBash 中)时,它会在控制台中给出以下错误,但运行命令:
Failed to load advapi32.dll
Run Code Online (Sandbox Code Playgroud)
这是为什么 ?如果需要对凭据管理器设置进行某些操作,那么我需要完整解释如何进行这些设置以及每个设置的含义。
注意:我仅在某些命令上遇到此问题,其他命令运行正常,没有任何错误。
git ×6
credentials ×2
git-bash ×2
github ×2
msysgit ×2
advapi32 ×1
git-config ×1
window ×1
windows ×1