Git – rename a branch Posted on December 16, 2024 by Angel git checkout <old_name> git branch -m <new_name> git push origin -u <new_name> git push origin --delete <old_name> Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to email a link to a friend (Opens in new window)Click to print (Opens in new window)MoreClick to share on Reddit (Opens in new window)Click to share on LinkedIn (Opens in new window)