add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
17
old_snippets/pushing-to-remote-branch-with-different-name.md
Normal file
17
old_snippets/pushing-to-remote-branch-with-different-name.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: "pushing to remote branch with different name"
|
||||
date: 2021-09-08T13:02:41+02:00
|
||||
draft: false
|
||||
snippet_types:
|
||||
- git
|
||||
---
|
||||
|
||||
Some times you rename a branch locally and want to push it to a remote branch with a different name.
|
||||
This is how:
|
||||
|
||||
```shell
|
||||
$ git push -u origin localBranch:remoteBranch
|
||||
```
|
||||
|
||||
source: [stack-overflow](https://stackoverflow.com/questions/36139275/git-pushing-to-remote-branch)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue