下面說一下https克隆的方式免密碼提交
在我們下載鏈接前面加上賬號:密碼@即可
方式一:
-
使用https的方式克隆代碼
git clone '地址'
-
查看項目中的配置文件
vim .git/config
[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [remote “origin”] url = https://github.com/地址 fetch = +refs/heads/:refs/remotes/origin/ [branch “master”] remote = origin merge = refs/heads/master
-
修改remote中的url那行如下
url = https://賬號:密碼@github.com/地址
方式二: