git add -m Значение

git add -M <new branch name>

## -M flag is for renaming the current branch in which you are present..
## Note it is for local branch on your computer

## please vote this
Nasty Nightingale