From: Junio C Hamano Date: Fri, 02 Jul 2021 18:15:07 GMT Subject: Re: bug in "git fsck"? Message-ID: In-Reply-To: <60DF1C22020000A100042225@gwsmtp.uni-regensburg.de> "Ulrich Windl" writes: > 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.