Automate upstream branch creation

Git, Configuration, Repository · Oct 19, 2022

Configures the repository to automatically create upstream branches on push.

  • Use git config --add --bool to enable automatic upstream branch creation on push.
  • You can use the --global flag to enable this setting globally.
git config [--global] --add --bool
git config --global --add --bool
# `git push` will automatically create new branches, if they don't exist

Written by Angelos Chalaris

I'm Angelos Chalaris, a JavaScript software engineer, based in Athens, Greece. The best snippets from my coding adventures are published here to help others learn to code.

If you want to keep in touch, follow me on GitHub or Twitter.

More like this