方法1
//查看
$ git remote
origin
//兩步操作
//1. git remote remove origin
//2. git remote add origin new_url
$ git remote remove origin http://192.168.18.100/hhq/SolarWallet.git
$ git remote add origin http://172.100.0.110/hhq/SolarWallet.git
//再次查看百新,遠(yuǎn)程地址已經(jīng)修改
$ git remote -v
origin http://172.100.0.110/hhq/SolarWallet.git (fetch)
origin http://172.100.0.110/hhq/SolarWallet.git (push)
方法2
//查看
$ git remote -v
origin http://192.168.18.100/hhq/SolarWallet.git (fetch)
origin http://192.168.18.100/hhq/SolarWallet.git (push)
//修改 git remote set-url origin new_url old_url
$ git remote set-url origin http://172.100.0.110/hhq/SolarWallet.git http://192.168.18.100/hhq/SolarWallet.git
//再次查看缎除,遠(yuǎn)程地址已經(jīng)修改
$ git remote -v
origin http://172.100.0.110/hhq/SolarWallet.git (fetch)
origin http://172.100.0.110/hhq/SolarWallet.git (push)
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者