Git免密码提交
2016-05-25 11:40
134 查看
http://www.akmumu.com/2015/06/02/360.html
Git 提交
下面说一下https克隆的方式免密码提交
使用https的方式克隆代码
git clone https://github.com/akmumu/google_hosts.git
查看项目中的配置文件
vim .git/config
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [remote “origin”] url = https://github.com/akmumu/google_hosts.git fetch = +refs/heads/:refs/remotes/origin/ [branch “master”] remote = origin merge = refs/heads/master
修改remote中的url那行如下
url = https://akmumu:123456@github.com/akmumu/google_hosts.git
即https://username:password@github.com/username/project.git username就是你账号的个性地址
Git 提交
1、git init 2、git add . 3、git commit -m “说明” 4、git remote add origin https://github.com/superbobogithub/xxxx.git 5、git push -u origin master
下面说一下https克隆的方式免密码提交
使用https的方式克隆代码
git clone https://github.com/akmumu/google_hosts.git
查看项目中的配置文件
vim .git/config
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [remote “origin”] url = https://github.com/akmumu/google_hosts.git fetch = +refs/heads/:refs/remotes/origin/ [branch “master”] remote = origin merge = refs/heads/master
修改remote中的url那行如下
url = https://akmumu:123456@github.com/akmumu/google_hosts.git
即https://username:password@github.com/username/project.git username就是你账号的个性地址
相关文章推荐
- 纯css三级导航
- 正则_学习笔记
- Unreal Engine 4 —— 使用反汇编来确定该进行优化的地方
- python 学习笔记十四 jQuery案例详解(进阶篇)
- 10个常见的Node.js面试题
- css3的背景坐标
- hard link vs soft link
- Android 使用第三方SDK—友盟实现分享功能
- Python2学习笔记(2)
- vim的最最最基本操作
- MySQL如何选择float, double, decimal
- MongoDB JAVA API Filters
- C++小里程
- SpringMVC Controller写法
- Ajax-基础篇
- Android Navigation TabBar控件实现多彩标签栏
- java.lang.OutOfMemoryError: PermGen space及其解决方法
- iOS上线流程
- 正则表达式
- 使用JMeter对Tomcat进行压力测试与Tomcat性能调优