Git branch cleanup
git branches Delete branch from remote 'origin':
git push -d origin <branch name> Delete local branch:
git branch -d <branch name> Rename current local branch:
git branch -n <new name> Rename some local branch:
git branch -m <old name> <new name> Rename remote branch after renaming local branch:
git push origin :<old name>
git push --set-upstream origin <new name>
Links:
Stackoverflow: How do I delete a Git branch both locally and remotely (http://stackoverflow.com)
Stackoverflow: How do I delete a Git branch both locally and remotely (http://stackoverflow.com)