Files
30-seconds-of-code/snippets/git/s/automatic-push-upstream.md
Angelos Chalaris 4d0316a062 Update covers
2023-05-07 22:25:00 +03:00

596 B

title, type, language, tags, author, cover, dateModified
title type language tags author cover dateModified
Automate upstream branch creation snippet git
configuration
repository
chalarangelo messy-computer 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