add the old snippet md files

This commit is contained in:
Travis Shears 2025-06-05 16:20:57 +02:00
parent fc0dd204c7
commit bcf8313a4b
110 changed files with 3048 additions and 0 deletions

View 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)