Skip to content

Instantly share code, notes, and snippets.

@jamosonic
Created August 26, 2022 04:20
Show Gist options
  • Save jamosonic/ada2bad3f4dfeee1283fdc89578913c6 to your computer and use it in GitHub Desktop.
Save jamosonic/ada2bad3f4dfeee1283fdc89578913c6 to your computer and use it in GitHub Desktop.
Automatically set upstream branch in Git > 2.37.0
# https://git-scm.com/docs/git-config/#Documentation/git-config.txt-pushdefault
git config --global --add --bool push.autoSetupRemote true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment