git更改遠端倉庫地址
阿新 • • 發佈:2018-12-11
git修改遠端倉庫地址的三種方法
直接命令修改
git remote set-url origin [url]
命令,先刪除後設新地址
git remote rm origin git remote add origin [url]
直接修改配置檔案
檔案位置:git/configconfig
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[gui]
wmstate = normal
geometry = 841x483+225+101 189 218
[remote "origin"]
url = [email protected]:zengmianhui/android_project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master