Categories
October Surprise 2024

Why is git clone not copying source files to my local directory?

First, git said it received 84.6 MiB of objects, so sanity check: du -hs .git/objects If it’s empty, perhaps you are not actually in the target folder. If it’s not empty, git log –all. This just asks git log to follow all refs from refs/. You might discover that the source files were there before, but were removed in a subsequent commit.