Add automatic upstream branch creation

This commit is contained in:
Angelos Chalaris
2022-10-01 15:33:59 +03:00
parent b86920c519
commit 4b73f49bc2

View File

@ -0,0 +1,22 @@
---
title: Automate upstream branch creation
tags: configuration,repository
expertise: intermediate
author: chalarangelo
cover: blog_images/violin.jpg
firstSeen: 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.
```shell
git config [--global] --add --bool
```
```shell
git config --global --add --bool
# `git push` will automatically create new branches, if they don't exist
```