git提示输入账号密码报错

版权声明:欢迎转载,有问题劳烦指出 https://blog.csdn.net/qq_33592002/article/details/82155139
git reset --hard commit_id

git 版本回退 commit-ID  是指 git log 的前面一序列版本号 

chenggongzhaodeMacBook-Pro:gongzhaocheng.github.io cgz$ git push origin master
Username for 'https://github.com': gongzhaocheng
Password for 'https://[email protected]':
To https://github.com/gongzhaocheng/gongzhaocheng.github.io.git

版本回退后,提交代码到远程仓库,需要正确输入github密码账号 。 

输错会有如下提示

remote: Invalid username or password.

猜你喜欢

转载自blog.csdn.net/qq_33592002/article/details/82155139