push到Github每次都要输入密码
2015-10-29 09:59
295 查看
问题描述
push 到 Github 每次都要输入密码,原因是使用了 Https 的方式添加远程仓库git remote add origin https://github.com/weiheli/UCenter.git
查看 push 和 fetch 方式
git remote -v // 输出 origin https://github.com/weiheli/UCenter.git (fetch) origin https://github.com/weiheli/UCenter.git (push)
换成 ssh 方式
创建SSH Key,把id_rsa.pub中的内容添加到 Github 的
Deploy keys。
然后
git remote rm origin git remote add origin git@github.com:weiheli/UCenter.git
相关文章推荐
- 当mac升级到EI Caption后绑定到Js、lua出现LibclangError: dlopen(libclang.dylib, 6)的错误
- 1057 - Collecting Gold (状态压缩DP)
- java Future 接口介绍
- Spring MVC入门示例
- 【详解】Python抓取数据脚本
- java之静态变量
- 基于windows的多线程编程初步介绍
- 从Github上用pod导入的报错解决
- java对身份证验证及正则表达式解析
- C#使用RDP远程桌面
- php curl多线程抓取网页
- Golang学习笔记 - 【杂项】格式化时间成datetime
- qt的help页面字体太小
- C++、C#、java算法学习日记01---冒泡排序(BubbleSort)
- Java NIO系列教程(四) Scatter/Gather
- Struts2使用OGNL遍历各种map总结
- libcurl 下载ftp服务器全部文件
- C++中的volatile修饰符的作用
- mybatis例子及mybatis和spring整合
- 用python求解一元二次方程组