In GIT, I named a branch 2020
. Now I can not go to that branch, and when I try to remove it, I get the error Fatal: need for branch name
. I use regular git branch-D2020
and force git branch-D2020
.
I have also tried to name the branch in quotes, but I get a single error.
I do not want this branch any more, can any such thing be done?
Update: I can check the branch using the git checkout riffs / head / 2020
, but I can not remove it from doing so.
Update 2: Navigating to / Gs / refs / then changing the name of 2020 to 2020, I deleted it. Whatever git was playing, I do not know.
The problem here is that 2020
resembles a short SHA-1 .
I have done this kind of thing before myself, which looks like words: I had a branch which I gave the name cafe
or similar.
This trick is to put some non-numerical, non-"A" characters in the branch name (you can change it with git branch -m
low level Method you used) so that guit can tell that this is not a SHA-1.
No comments:
Post a Comment