What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-12 13:12:10
Change a branch name in a Git repo
# Start by switching to the local branch which you want to rename: git checkout <old_name> # Rename the local branch by typing: git branch -m <new_name> # At this point, you have renamed the local branch. # If you’ve already pushed th... Add solution