17 lines
405 B
Markdown
17 lines
405 B
Markdown
---
|
|
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)
|
|
|