What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-27 16:16:02
Git change remote branch name
# Rename the local branch to the new name git branch -m <old_name> <new_name> # Delete the old branch on remote - where <remote> is, for example, origin git push <remote> --delete <old_name> # Or shorter way to delete remot... Add solution -
Shell/Bash 2021-08-26 10:45:02
git rename remote branch
# Rename the local branch to the new name git branch -m <old_name> <new_name> # Delete the old branch on remote - where <remote> is, for example, origin git push <remote> --delete <old_name> # Or shorter way to delete remot... Add solution