原來的倉庫地址如https://git.hiweeds.net/test.git
新的倉庫地址爲 https://git.hiweeds.net/real.git
git clone https://git.hiweeds.net/test.git
cd test
git remote set-url https://git.hiweeds.net/real.git
git push --all
or
#Just push each branch to remote repo, actuall I just use this.
git push origin master:master
git push origin develop:develop
參考:
Git工程遷移方法總結(命令行)