The warning: remote HEAD refers to nonexistent ref, unable to checkout. means that the remote (bare) repository contains *branch reference* in the file called HEAD with a value that does not match any published branch in the same repository. In practice, that file defines *which branch* should be checked out by default after cloning the repository.
https://stackoverflow.com/questions/11893678/warning-remote-head-refers-to-nonexistent-ref-unable-to-checkout On Thu, Mar 9, 2023 at 2:51 PM Gary D. Gregory <ggreg...@apache.org> wrote: > Hi All: > > My expectation is that: > > C:\Users\ggregory\git\a>git clone > https://gitbox.apache.org/repos/asf/logging-log4j2.git logging-log4j3 > > Would clone and checkout master (or main or whatever the default branch is > called now) but instead, I get an empty folder and this output: > > Cloning into 'logging-log4j3'... > remote: Enumerating objects: 262413, done. > remote: Counting objects: 100% (262413/262413), done. > remote: Compressing objects: 100% (68647/68647), done. > remote: Total 262413 (delta 127358), reused 256238 (delta 122788) > Receiving objects: 100% (262413/262413), 38.27 MiB | 11.31 MiB/s, done. > Resolving deltas: 100% (127358/127358), done. > warning: remote HEAD refers to nonexistent ref, unable to checkout > > This says nothing to help: > https://github.com/apache/logging-log4j2/blob/2.x/BUILDING.md > and nothing jumps out at me on the main page > https://logging.apache.org/log4j/2.x/index.html > > So... what's the magic missing? > > TY! > Gary > >