Nest all content into snippets
This commit is contained in:
23
snippets/git/s/automatic-push-upstream.md
Normal file
23
snippets/git/s/automatic-push-upstream.md
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
title: Automate upstream branch creation
|
||||
type: snippet
|
||||
language: git
|
||||
tags: [configuration,repository]
|
||||
author: chalarangelo
|
||||
cover: violin
|
||||
dateModified: 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
|
||||
```
|
||||
Reference in New Issue
Block a user