GIT(4)----免输入账号和密码方法
1.全局方式
包删除了,再次下载也不需要在配置输入密码和用户名
参考资料:git pull 和 git push免输入账号和密码方法
2.局部方式
包删除了,密码用户也会被删除,需要重新设置
打开终端,进入相应的git目录下。
a.打开config:
vim .git/config
b.修改内容内容
原始
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = http://192.168.1.102:88/root/tl_package.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master
改为
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] url = http://username:password@192.168.1.102:88/root/tl_package.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master
Make Change - Focus on Computer Vision and Pattern Recognition
版权声明:本文为博主原创文章,未经博主允许不得转载
版权声明:本文为博主原创文章,未经博主允许不得转载