我正在使用几个存储库,但最近我只是在内部工作,一切都很棒.
今天我不得不承诺并将代码推送到其他代码中,但我遇到了一些麻烦.
$ 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'
为了避免凭证缓存......
似乎没有任何作用; 有没有人有更好的主意?
从命令行(通过https,而不是ssh)启动推送或任何其他操作,调用用户名和密码不仅会失败,但是当它发生时,它会返回
Username for 'https://github.com': username
Password for 'https://username@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/username/repository.git/'
Run Code Online (Sandbox Code Playgroud)
我没有@github.com
地址.密码和用户名是正确的.
我知道我可以切换到SSH并使用密钥,但这并不能解决验证失败的原因.
我更改了GitHub密码后,无法推送到遥控器:
$ git push origin master
remote: Invalid username or password.
Run Code Online (Sandbox Code Playgroud)
是否只重新克隆存储库?
我刚刚安装了GitLab.
我创建了一个名为project-x的项目.
我创建了很少的用户并将其分配给项目.
现在我尝试克隆:
git clone git@192.168.0.108:project-x.git
Run Code Online (Sandbox Code Playgroud)
它提示我输入密码.
我应该使用什么密码?
我刚开始使用Git / Github,但我完全陷入困境。我在Mac / OSX El Capitan上使用Terminal,当要求输入密码时,它告诉我该密码无效,但是我输入的密码与我为GitHub帐户创建的密码相同,因此确定该密码有效吗?我究竟做错了什么?
Last login: Sun Dec 4 10:46:35 on ttys000
Seans-MBP:~ mrseanbaines$ git push -u origin master
Username for 'https://github.com': mrseanbaines
Password for 'https://mrseanbaines@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/mrseanbaines/cartwheeling-kitten.git/'
Seans-MBP:~ mrseanbaines$
Run Code Online (Sandbox Code Playgroud) 我遇到这个问题已经有一段时间了。基本上,我无法使用带有 https 的 GitBash 从我的工作计算机推送到 GitHub 上的个人存储库。
这是错误信息
$ git push origin master
Username for 'https://github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/georgeliu1998/mlnd.git/'
Run Code Online (Sandbox Code Playgroud)
检查了以下这些线程,但它们似乎不是相同的情况。