moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.87k stars 520 forks source link

ERROR: Looks like the .git directory is present. Please reinstall GVM. #472

Open Sylariam opened 3 months ago

Sylariam commented 3 months ago

I've been using this for a while. However when I tried this:

$ gvm get help error: pathspec 'help' did not match any file(s) known to git ERROR: Failed to checkout help branch $ gvm listall ERROR: Looks like the .git directory is present. Please reinstall GVM. ... After that, no matter what command I typed, returned the same error

Sylariam commented 3 months ago

I went through the script file. And deleted the .git dir in my $GVM_ROOT. Problem solved. But I still wonder what cause the original problem? I installed gvm by zsh

jlearman commented 1 day ago

I bumped into the same thing, and deleting the .git directory fixed it. Perhaps I used some git command when I was in that directory (which is odd, because I generally don't go there.)

Ah, I did accidentally use gvm get and perhaps that caused the issue.