git add -M ## -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