Re: bug in "git fsck"?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 2, 2021, 18:15 UTC
- Message-ID
- <xmqqczs0popg.fsf@gitster.g>
- In-Reply-To
- <60DF1C22020000A100042225@gwsmtp.uni-regensburg.de>
"Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> writes:
Show 5 quoted lines
> I was wondering whether git fsck should be able to cleanup
> orphaned branches ("HEAD points to an unborn branch") as described
> in https://stackoverflow.com/q/68226081/6607497 It seems I can fix
> it be editing files in the repository, but I feed that's not the
> way it should be.HEAD pointing at an unborn branch is not even a corruption, isn't it?
$ rm -rf trash && git init trash
would point HEAD at an unborn one, ready to be used.