Closed jlevers closed 4 years ago
Did you clone into a bare repo?
It was a full repo that I attempted to turn into a bare one like so:
$ cp repo/.git repo.git
$ git config --bool core.bare true
I can't re-clone the remote repo as a bare repo, for a variety of reasons. Although, now that I'm typing this, I realize there's probably a way to clone a local repo into a bare repo. I'm going to look into that now.
git clone --bare
is definitely the way to go.
Yep, rerunning everything after doing git clone -l --bare path/to/local/repo
fixed it. My bad, thank you @javabrett.
First of all, thank you for creating (and open sourcing) this awesome tool!
I successfully removed a number of large objects from my repository with
java -jar bfg.jar --delete-files \*.obj path/to/repo
. I then realized that I wanted to remove them from theHEAD
ofmaster
, so I ran the command again with--no-blob-protection
.Afterwards,
git reflog expire --expire=now --all
ran with no output, but when I rungit gc --prune=now --aggressive
, it fails with the following error message:I get similar messages when I try to run basically any other Git-related command in the repo. Any idea what happened here?
Thank you!