轉移git倉庫

原來的倉庫地址如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工程遷移方法總結(命令行)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章