Gudbrand Olimb Hi! My name is Gudbrand and this is my attempt of a blog. Living & working in Oslo, Norway. Get in touch? Feel free to PM me.

Multiple git remotes

  Reading Time:

When working with multiple remotes in git you sometimes want the possibility of pushing to all your remotes in one go. This can be achieved as explained beautifully in the Stack overflow question - however it is not listed how to do it for specific branch although the solution is "given".

So to make it completed (and for myself to remember at a later stage) I have also added the additional bonus step if you want to push only 1 branch to all remotes instead of all branches to all remotes.

To push all branches to all remotes:

git remote | xargs -L1 git push --all

Or if you want to push a specific branch to all remotes:

Replace master with the branch you want to push.

git remote | xargs -L1 -I R git push R master

(Bonus) Git alias for the command all branches, all remotes:

git config --global alias.pushall '!git remote | xargs -L1 git push --all'

Running git pushall will now push all branches to all remotes.

(Bonus2) Git alias for the command of one branch, all remotes:

git config --global alias.pushbranch '!git remote | xargs -L1 -I R git push R'

Running git pushbranch <your branch> will now push specified branch to all your remotes.

SSL Certificate convert to .pfx accepted by Azure

If you want to import a certificate into key vault in Azure you are required to have tour SSL certificate in a valid .pfx format. I...

Synology SSH key authentication

There is a lot of posts throughout the web on configuring SSH key authentication on Synology NAS many with some confusing and unnecessary steps such as...   Never miss a story from, get updates in your inbox.