Oddbean new post about | logout
 Do you mean "upstream" and "origin" branch names or #git remotes? 
 I think the author want to dynamically set remote=upstream (for the main branch), if remote exists. Otherwise set remote=origin.

I don't it's possible without writing some bash+git aliases :\ 
 @stavros Remotes 
 Maybe the config "branch.<name>.remote". Don't know if it can be applied to your global config.