Email or username:

Password:

Forgot your password?
1 post total
Fabian � 🏳️‍🌈

#Git
Did you know that you can set 2 or more remotes with the same alias and so push to both (or more) of them at the same time when doing a git push?

That way you can push to gitlab, gitea and github in a single command

took me way, waaay to long to realize. :blobcatnotlikethis:

Show previous comments
mushroom 🍄
@fabiscafe i usually add a “fork” remote when forking a project to contribute or work on
“origin” remote is the upstream where I’m read-only and “fork” is… you get it

How do you push to all remotes at once?
Kaushal Modi :emacs:

@fabiscafe I simply set multiple "pushurl"s for a remote name. When I pull, it will pull stuff only from the "url".

Here's one of the search results, arbitrarily picked, from searching "multiple pushurl git": delenamalan.co.za/til/2020-09-

#git

eBourgess

@fabiscafe that's actually cool! thanks for sharing that

Go Up