相关疑难解决方法(0)

从Git中删除凭据

我正在使用几个存储库,但最近我只是在内部工作,一切都很棒.

今天我不得不承诺并将代码推送到其他代码中,但我遇到了一些麻烦.

$ 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'

为了避免凭证缓存......

似乎没有任何作用; 有没有人有更好的主意?

windows git credentials

522
推荐指数
29
解决办法
63万
查看次数

GitHub身份验证通过https失败,返回错误的电子邮件地址

从命令行(通过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并使用密钥,但这并不能解决验证失败的原因.

git https github

120
推荐指数
7
解决办法
13万
查看次数

更改了GitHub密码,无法再回到遥控器

我更改了GitHub密码后,无法推送到遥控器:

$ git push origin master
remote: Invalid username or password.
Run Code Online (Sandbox Code Playgroud)

是否只重新克隆存储库?

git github

101
推荐指数
5
解决办法
7万
查看次数

GitLab git用户密码

我刚刚安装了GitLab.

我创建了一个名为project-x的项目.

我创建了很少的用户并将其分配给项目.

现在我尝试克隆:

 git clone git@192.168.0.108:project-x.git
Run Code Online (Sandbox Code Playgroud)

它提示我输入密码.

我应该使用什么密码?

git gitlab

43
推荐指数
4
解决办法
13万
查看次数

remote:无效的用户名或密码。致命:认证失败

我刚开始使用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)

git macos terminal github

5
推荐指数
5
解决办法
2万
查看次数

如何解决因“用户名或密码无效”而无法推送到 GitHub 的问题?

我遇到这个问题已经有一段时间了。基本上,我无法使用带有 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)

检查了以下这些线程,但它们似乎不是相同的情况。

git github

3
推荐指数
1
解决办法
5294
查看次数

标签 统计

git ×6

github ×4

credentials ×1

gitlab ×1

https ×1

macos ×1

terminal ×1

windows ×1