Garbage Collection
Running the Garbage collector will clean any objects in the repo that
are unreachable. To do this we can cle an up the Reflog of any objects
that are currently unreachable
git reflog expire --expire-unreachable=now --all
Once this is done we can run the Garbage collector
git gc
One thing to note here is that running the Garbage collector will place
our objects into the PACK folder, and from here VisualGit can no longer
decipher the repo
In order to get the data back into the OBJECTS folder so that Visual Git
can do its thing we need to perform the below
First move the files from within the PACK folder to the root of our repo
The run the below
type pack*.pack | git unpack-objects