方法: 直接修改配置文件
- 进入git_test/.git
-
vim config
-
[core] repositoryformatversion = 0 filemode = true logallrefupdates = true precomposeunicode = true [remote "origin"] url = http://192.168.100.235:9797/shimanqiang/assistant.git fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"] remote = origin merge = refs/heads/master
修改 [remote “origin”]下面的url,改为新地址即可