[SOLVED] “fatal: Could not read bundle ‘/path/to/your/file.ext’.” during git clone

$ git clone /path/to/repo/*
Initialized empty Git repository in /path/to/file.ext/.git/
error: ‘/path/to/repo/file.ext’ does not look like a v2 bundle file
fatal: Could not read bundle ‘/path/to/repo/file.ext’.

Fortunately, it happened after I’d just done a serious site-wide rename of a bunch of files, and I decided to try cleaning the repository.

This solved everything:
$ git gc /path/to/repo

Leave a Comment

Your email address will not be published. Required fields are marked *