Git Push to Two URL Simultaneously

git remote set-url --add --push origin git://original/repo.git
git remote set-url --add --push origin git://another/repo.git

Remove one url from origin

git remote set-url --delete --push origin git://another/repo.git

Remove origin totally

git remote rm origin
git remote set-url origin git://another/repo.git

发表评论

zh_CN简体中文