更改了GitHub密码,不再能够推回到远程 [英] Changed GitHub password, no longer able to push back to the remote

查看:94
本文介绍了更改了GitHub密码,不再能够推回到远程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  $ git push origin master $ b 

更改我的GitHub密码后,我无法推送到远程: $ b remote:无效的用户名或密码。

是否只重新存储库?


git远程显示来源


这会要求您为给定的git用户输入密码,正确,现在试试: -


git pull




git push

它应该工作,除非你必须改变其他东西,如用户名或远程URL,你可以看看下面的Git文档: - $ /

lockquote

https://help.github.com/articles/setting-your-username- in-git /



https://help.github.com/articles/changing-a-remote-s-url/



After I changed my GitHub password, I am unable to push to the remote:

$ git push origin master
remote: Invalid username or password.

Is there only re clone the repository?

解决方案

If you had your remote's password changed only, not the username, then try the following command to check remote's info:-

git remote show origin

This will ask for your password for the given git user, fill that in correctly, and now try:-

git pull

or,

git push

It should work unless you have to change other things like username or remote URL, you can take a look at the following Git documentation:-

https://help.github.com/articles/setting-your-username-in-git/

https://help.github.com/articles/changing-a-remote-s-url/

这篇关于更改了GitHub密码,不再能够推回到远程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆