Files
30-seconds-of-code/snippets/automatic-push-upstream.md
2022-10-01 15:33:59 +03:00

595 B

title, tags, expertise, author, cover, firstSeen
title tags expertise author cover firstSeen
Automate upstream branch creation configuration,repository intermediate chalarangelo blog_images/violin.jpg 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