windows配置git用户名密码
(多个git地址可配置多个用户名密码
)
[gui]
encoding = utf-8
recentrepo = D:/work/Git Work/git1
[user]
email = 邮箱1
name = 用户名1
[gui]
encoding = utf-8
recentrepo = D:/work/Git Work/git2
[user]
email = 邮箱2
name = 用户名2
[credential]
helper = store
linux配置拉取git不需要输入用户名密码
修改git配置文件:项目名/.git/config
[remote "origin"]
url = https://git.oschina.net/xxx/xxx.git
修改为
[remote "origin"]
url = https://用户名:密码@git.oschina.net/xxx/xxx.git