I don\'t want to rename a remote branch, as described in Rename master branch for both local and remote Git repositories.
How can I rename a local branch wh
To rename the current branch (except for detached HEAD state) you can also use this alias:
[alias] mvh = !sh -c 'git branch -m `git rev-parse --abbrev-ref HEAD` $1'