Interview Prep/Git & GitHub/Conflicts, remotes, fetch, pull and push

What do `push.default` options (`simple`, `current`, `upstream`) mean?

IntermediateConceptConflicts, remotes, fetch, pull and push
Answer

simple (default) pushes the current branch to a same-named remote branch, and when pulling-and-pushing to different names it refuses. current pushes to a same-named branch regardless of upstream. upstream pushes to the configured tracking branch. matching (legacy) pushed all same-named branches and is dangerous.

All Git & GitHub questions Roadmap: Git & GitHub

More on Conflicts, remotes, fetch, pull and push