I have created branch with “git checkout -b mybranch”. It seems that something went wrong, and now I can’t delete it using “git branch -D mybranch”. It says: error: branch ‘mybranch’ not found.
I have created branch with git checkout -b mybranch. It seems that something went
Share
If
git branch -Dreally isn’t working, then your only option is to side-step it and edit the git check-out’s state yourself. You should go to the root-directory of your check-out (where the.gitdirectory is) and.git/packed-refs; if you see a line with your branch name then delete it.git/refs/headsfor a file named after your branch; if you see one, delete it