Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Git LFS : Need help for already existing project

alexandrekhalifa September 13, 2019

Hi there,

I have a lot of troubles making LFS work on my already existing project. It hit the cloud 1GB soft limit, and I wanted to optimize this. I actually have dozens (or hundreds) of tracked PNG files, which represents a few hundreds of MB.

My idea was to introduce Git LFS. Maybe I need to say I am using SourceTree. Well, it seems to be quite simple to set Git LFS on a new project, but I'm struggling very hard to untrack those PNGs with Git regular tracking and track them with Git LFS, in order to reduce my repo size.

I tried a lot of things :

- Setup LFS, which seemed to have worked (quite simple on SourceTree).

- Untrack my PNGs with Git using git rm -r --cached "*.png" command.

- Eventually add them back with git add

- Even tried to use BFG as, as far as I understand, it removes files from the repository's Git history. Boy, I sweated a little on this part...

Well, this is weird because it kinda seems to have worked, as it seems that new and old PNGs are now tracked by LFS.

Problem is I still have a repo size warning... Worse than that, before my attempt, repo size was 1.1 GB, and after, it was 1.3 GB.

I could not find any way or any clear tutorial to help me...

Do you have any clue ?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events