Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- old_name="old-branch-name"
- new_name="new-branch-name"
- git checkout ${old_name}
- git branch -m ${old_name} ${new_name}
- git push origin :${old_name} ${new_name}
- git push origin -u ${new_name}
- echo "Branch ${old_name} renamed to ${new_name}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement