Quantcast
Channel: How to delete a blob from a Git repo - Stack Overflow
Viewing all articles
Browse latest Browse all 3

How to delete a blob from a Git repo

$
0
0

I accidentally added a database dump (over 1 GB) to my repository, pushed it and noticed this few days later.

I used git filter-branch to delete the file, expired reflog and ran git gc to prune unused objects, but the database dump blob is still in the repository. I used Which commit has this blob?, but I did find any commit which has a reference to the blob. How can I delete this or how do I find out why it didn't get deleted during git gc?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images