Answer the question
In order to leave comments, you need to log in
How to completely get rid of an annoying branch?
Started learning GIT. I deleted the new3 branch with a commit, and now after the git branch command, -d still appears at the bottom:
C:\path\to\myproject>git branch
* master
–d
C:\path\to\myproject>git checkout -d
HEAD is now at a96b167 new3 commit
C:\path\to\myproject>git branch
* (HEAD detached at a96b167)
master
–d
C:\path\to\myproject>git branch new3
C:\path\to\myproject>git branch
* (HEAD detached at a96b167)
master
new3
–d
C:\path\to\myproject>git branch
* master
–d
Answer the question
In order to leave comments, you need to log in
Googling easily.
https://koukia.ca/delete-a-local-and-a-remote-git-...
You managed to create a branch called "-d"
Try to delete it with the
git branch -D -- -d
UPD command: after careful study, I see that you do not have a hyphen there, but en-dash.
Try copying and running this command
git branch -D –d
notice that the characters before D and d are different.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question