修改.git資料夾下的cofnig檔案,將[remote "origin"]地址修改為新的目的碼倉地址:
[remote "origin"] url = git@code.yun.com:123456/XXX/XXX/Code1.git fetch = +refs/heads/*:refs/remotes/origin/*
根據實際分支情況修改[branch "master"]:
[branch "master"] remote = origin merge = refs/heads/master
修改完成後,強制推送
git push origin master -f