Breck Yunits
@breck
5 second tip for improving your git workflows:
1 reply
0 recast
4 reactions
Zinger ↑
@zinger
What’s the benefit of this? That the remote will be called “github” instead of “origin” so it’s clearer? Or is there something else?
2 replies
0 recast
2 reactions
Pedro Santana
@z0uk
None. The only way I see this being useful is if I didn't know what the -u flag does. Or you had more than 1 remote, but in over 10 years I haven't seen any project with 2 remotes or more.
1 reply
0 recast
1 reaction
Breck Yunits
@breck
My typical project has 3 remotes. I push to all with a one liner: 'alias gp="for remote in \$(git remote); do git push \$remote main; done"'
2 replies
0 recast
2 reactions
Pedro Santana
@z0uk
Also not sure if it interests you, I've just found out this myself, a remote can have more than one URL, so you can have a forth remote called "all" with the other 3 remote URLs. Quite frankly I can't see much benefit too it that your clever alias doesn't cover, however I'm a one remote guy so maybe you can find some use in it.
1 reply
0 recast
1 reaction
Breck Yunits
@breck
Interesting. I didn't know that. I don't think I have a use for that at the moment, but always appreciate little bits of knowledge like that.
0 reply
0 recast
0 reaction