TIL: You can configure Git to automatically correct commands (help.autocorrect)1 and set the upstream tracking reference on default push
if none exists (push.autoSetupRemote)2.
I added the following lines to my .gitconfig
.
[help]
autocorrect = prompt
[push]
autoSetupRemote = true
The interactive option prompt
was added in Git version 2.34.0 (2021).↩︎
Starting with Git version 2.37.1 (2022), implemented by this commit.↩︎