GIt -- git push 远程分支老是需要重新输入公钥密码问题处理?
Posted smallyi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GIt -- git push 远程分支老是需要重新输入公钥密码问题处理?相关的知识,希望对你有一定的参考价值。
步骤:
- 先查看远程有哪些分支
- 删除远程分支,重新关联远程分支
- 最后再git push 到远程分支
git remote -v
git remote rm RedisNote
git remote add origin [email protected]:mrsmallyi/RedisNote.git
git push origin master
过程如下:
[email protected]704071818 MINGW64 ~/Documents/GitHub/RedisNote (master) $ git remote -v RedisNote [email protected]:mrsmallyi/RdisNote.git (fetch) RedisNote [email protected]:mrsmallyi/RdisNote.git (push) origin [email protected]:mrsmallyi/RedisNote.git (fetch) origin [email protected]:mrsmallyi/RedisNote.git (push) [email protected]-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master) $ git remote rm RedisNote [email protected]-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master) $ git remote -v origin [email protected]:mrsmallyi/RedisNote.git (fetch) origin [email protected]:mrsmallyi/RedisNote.git (push) [email protected]-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master) $ git remote rm origin [email protected]-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master) $ git remote add origin [email protected]:mrsmallyi/RedisNote.git [email protected]-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master) $ git push origin master Enter passphrase for key ‘/c/Users/Administrator/.ssh/id_rsa‘: Everything up-to-date
以上是关于GIt -- git push 远程分支老是需要重新输入公钥密码问题处理?的主要内容,如果未能解决你的问题,请参考以下文章
GitGit 分支管理 ( 删除远程分支 | 查看远程分支 git branch -a | 删除远程分支 git push origin --delete feature1 )
GitGit 分支管理 ( 删除远程分支 | 查看远程分支 git branch -a | 删除远程分支 git push origin --delete feature1 )