Cannot lock ref appears when creating a branch

Screenshot 2018-04-11 4.54.50 PM
clipboard.png

excuse me, is this the kind of error that occurs when the / previous name already exists in the branch? What is the essence of this problem?

Git
Mar.02,2021

Yes.

git stores branch information in the .git / refs/heads directory, where each branch is a file.
if you open this directory, you will find that your sss branch is a file called sss , while the sss1/a branch is a file called a in the sss1/ directory. If you want to create a sss/a branch, git will try to create a a file under the sss/ directory, while sss already exists and is not a directory, so creation is not allowed.

Menu