From 76308321b0979ae4b14871b30aa0675e01455501 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 11 Nov 2019 18:20:37 +0530 Subject: [PATCH] add note on updating remote branch name (#290) * add note on updating remote branch name * Style edits. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 44be4b6..fa28703 100644 --- a/README.md +++ b/README.md @@ -1101,6 +1101,11 @@ To rename a different (local) branch: ```sh (master)$ git branch -m old-name new-name ``` + To delete the `old-name` remote branch and push the `new-name` local branch: + + ```sh + (master)$ git push origin :old_name new_name + ``` ### I want to checkout to a remote branch that someone else is working on