I was using this method to add multiple remote repository URLs. I by mistake added same remote url by using this command twice :
git remote set-url origin --push --add <a remote>
So now git remote -v
shows this:
origin https://github.com/<user>/<repo>.git (fetch)
origin https://github.com/<user>/<repo>.git (push) // remote-1
origin https://github.com/<user>/<repo>.git (push) // duplicate reference to same remote-1
origin https://bitbucket.com/<user>/<repo>.git (push) // remote-2
So now, whenever i push, git pushes 3 times, assuming there are 3 URLs.
How can i remove this duplicate URL, while keeping the original & the new remote reference.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…