码迷,mamicode.com
首页 > 其他好文 > 详细

GIt -- git push 远程分支老是需要重新输入公钥密码问题处理?

时间:2018-07-31 23:29:18      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:问题   document   redis   dmi   github   com   min   color   users   

  步骤:

  1.   先查看远程有哪些分支
  2.   删除远程分支,重新关联远程分支
  3.  最后再git push 到远程分支
git remote -v
git remote rm RedisNote
git remote add origin git@github.com:mrsmallyi/RedisNote.git
git push origin master

过程如下:
Administrator@AFAAW-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master)
$ git remote -v
RedisNote       git@github.com:mrsmallyi/RdisNote.git (fetch)
RedisNote       git@github.com:mrsmallyi/RdisNote.git (push)
origin  git@github.com:mrsmallyi/RedisNote.git (fetch)
origin  git@github.com:mrsmallyi/RedisNote.git (push)

Administrator@AFAAW-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master)
$ git remote rm RedisNote

Administrator@AFAAW-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master)
$ git remote -v
origin  git@github.com:mrsmallyi/RedisNote.git (fetch)
origin  git@github.com:mrsmallyi/RedisNote.git (push)

Administrator@AFAAW-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master)
$ git remote rm origin

Administrator@AFAAW-704071818 MINGW64 ~/Documents/GitHub/RedisNote (master)
$ git remote add origin git@github.com:mrsmallyi/RedisNote.git

Administrator@AFAAW-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 远程分支老是需要重新输入公钥密码问题处理?

标签:问题   document   redis   dmi   github   com   min   color   users   

原文地址:https://www.cnblogs.com/smallyi/p/9398387.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!