In my case, this was due to the branch name that I already created.
First, I created a branch with some name that probably should not exist, for example:
git checkout -b some_unknown_branch
then I cleared all the rest of my branches because they were just unnecessary garbage.
git branch | grep -v \* | grep -v master | xargs git branch -D
and then renamed my branch to the name I intended, for example:
git checkout -m my_desired_branch_name
Arsen Khachaturyan Nov 02 '18 at 11:38 2018-11-02 11:38
source share