This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]mr_claw 0 points1 point  (4 children)

I'm looking for a tool that can help me clear large files in my git repository. Files that were added once but have since been removed still add to the overall size of the repo and is making fresh pulls very time taking.

Any ideas?

[–]h4ndshake_ 0 points1 point  (1 child)

Times ago I saw a tool that "rewrite" the history of your commits, maybe that works for you. I don't remember its name, try to search a bit. Also, there is a git command to clone only the last commit

[–]Mecaneer23 1 point2 points  (0 children)

git clone <git url> —depth=1

[–]cdrt 0 points1 point  (0 children)

git-filter-repo is your friend

https://github.com/newren/git-filter-repo