Files
30-seconds-of-code/git/snippets/automatic-push-upstream.md
2023-05-01 22:28:09 +03:00

574 B

title, type, tags, author, cover, dateModified
title type tags author cover dateModified
Automate upstream branch creation snippet
configuration
repository
chalarangelo violin 2022-10-19T05:00:00-04:00

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