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

发表评论

电子邮件地址不会被公开。 必填项已用*标注