在.git目录中有个config目录,在路径前配置下用户名和密码即可
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = http://帐号:密码@url.git
fetch = +refs/heads/*:refs/remotes/origin/*
网友评论