- 进入项目.git文件夹下
- 编辑配置文件 config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = http://yuchilin@**.**.**.**/yihao-server/yihao-center.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "lyc_branch"]
remote = origin
merge = refs/heads/lyc_branch
[branch "merge_branch"]
remote = origin
merge = refs/heads/merge_branch
[branch "test_branch"]
remote = origin
merge = refs/heads/test_branch
修改url地址为新的地址
如:https://yuchilin@git.xmgoldnet.com/yihao-server/yihao-center.git
网友评论