https://github.com/JuliaLang/julia/issues/23858
- GitError(Code:ENOTFOUND, Class:Reference, Revspec ‘HEAD’ not found.)
First of all you should be sure it’s the actual error. To me it looks like, if Pkg.status is complaining about a missing HEAD then it’s mostlikely METADATA. Do you have git as commandline or GUI tool available? Then go into the METADATA directory and run git status.
The classical way to build a fresh and new julia home is:
- backup the current
- delete julia home
- run Pkg.init
- copy from the backup the REQUIRE file
- run Pkg.update
- copy from the backup other packages (on a per need basis)