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

Git免密码提交

时间:2016-05-25 12:48:52      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:

http://www.akmumu.com/2015/06/02/360.html

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就是你账号的个性地址


Git免密码提交

标签:

原文地址:http://www.cnblogs.com/superbobo/p/5526414.html

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