git当前项目免密提交

时间:2019-05-16 16:27:06   收藏:0   阅读:127

在项目目录下,执行:

vim .git/config

在url后边添加用户名密码即可 ``` [core] repositoryformatversion
= 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = https://帐号:密码@github.com/xxx/xxxlery-demo.git # 添加用户名密码 fetch = +refs/heads/*:refs/remotes/origin/* url = http://帐号:密码@xxxxx.cn/xxx/xxxlery-demo.git # 添加用户名密码 [branch "master"] remote = origin merge = refs/heads/master ```

 

原文:https://www.cnblogs.com/wt11/p/10875862.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!