You can see the instruction below (the example use. Used this same command but with the original url (not really a solution as there wasn't really a problem in the beginning, but if you nitpick like me and you just want to see a push url for the old/original remote then you can use the below command to add it): git remote set-url -add -push origin I arrived to the "workaround?":Īfter rereading this I noticed that the instruction was to add the original repo url when it was added after git remote add. To get the expected output: origin (fetch)Īll I had to do was to also add the original repo url just like how I added the 2nd one. What I've tried: git remote -v show originīut all of them return a single url, and it's either the old or the new url. The Question: as the title says and the expected output shown, how do you show all the urls added on a specific remote? When the expected output should be: origin (fetch) The git log would then show that norigin would be behind by a single commit than the origin, but I thought it's because it's treated still as a another individual remote, then checked each individual repo and it was indeed pushing to both repos, thus I deleted the norigin remote.Īll's good but when I enter git remote -v it would only show: origin (fetch) My search for an one push command solution brought me here.īasically you can edit/add another url to an existing remote, thus I entered: git remote set-url -add -push origin if the now git push origin command would push to both remote urls. Because of some Bitbucket updates it was suggested that our team would centralize the repositories by creating another account with one App password for all the projects that the team handles.Īt first, I've decided to add another remote using: git remote add norigin īut pushing to two remotes every time would prove to be a hassle. Context: I have the origin remote with a the default url after cloning a repo.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |