Oddbean new post about | logout
 Is there a way via your `.gitconfig` to make `main` have its remote default to `upstream` when available, otherwise fall back to `origin`? 
 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 :\