From 57f9fe4882ff36df28a0c7c07d939c5b2fb22caa Mon Sep 17 00:00:00 2001 From: Asocia Date: Sun, 7 Nov 2021 11:49:33 +0300 Subject: [PATCH] Add a note about pushing to differently named branch --- git/notes-from-pro-git-book.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/git/notes-from-pro-git-book.md b/git/notes-from-pro-git-book.md index e8f284a..bdde323 100644 --- a/git/notes-from-pro-git-book.md +++ b/git/notes-from-pro-git-book.md @@ -65,3 +65,10 @@ To delete the old branch name: ``` git push origin --delete bad-branch-name ``` + +- Pushing a local branch into a remote branch that is named differently + +``` +# our branch is serverfix and we don't want to push it with this name +git push origin serverfix:awesomebranch +```