"Ulrich Windl" <Ulrich.Windl@xxxxxxxxxxxxxxxxxxxx> 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.