首页 > 其他 > 详细

github多次输入用户名解决办法

时间:2015-06-27 09:38:34      阅读:244      评论:0      收藏:0      [点我收藏+]

在github.com上 建立了一个小项目,可是在每次push 的时候,都要输入用户名和密码,很是麻烦

原因是使用了https方式 push

在termail里边 输入 git remote -v

可以看到形如一下的返回结果

origin https://github.com/yuquan0821/demo.git (fetch)

origin https://github.com/yuquan0821/demo.git (push)

下面把它换成ssh方式的。

1  git remote rm origin
2 git remote add origin git@github.com:yuquan0821/demo.git
3 git push origin

 

github多次输入用户名解决办法

原文:http://www.cnblogs.com/xiezhe/p/4603615.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!