Large Files > prevention

185 views
Skip to first unread message

gpug...@gmail.com

unread,
Mar 10, 2014, 4:08:45 PM3/10/14
to gitext...@googlegroups.com
It's horrible (not convenient) to remove large files once they are buried in the repo. We've got a 60MB, 40MB and 10MB - from visual studio build files - buried in there. GitExtensions > Plugins > Find Large Files > Delete creates more of a mess^ than a cure^.
What would help git-newbies like myself is if warning buzzers and flashing lights went off if a Large File gets into the staging area. Usually it's accidental and we know we shouldn't be putting in large files. We just miss it. Maybe red text somewhere.
-Doug

^mess
Fortuately I didn't trust the Delete, and deep copied my local repo before trying the local delete.
It ballooned the .git folder
Before extensions > plugins > find large files >delete
74.0 MB (77,684,516 bytes)
569 Files, 232 Folders
After: .git:
949 MB (996,045,707 bytes)
3,874 Files, 339 Folders
.git-rewrite: empty

 Here's the console output:
cmd.exe /C "C:\Users\higha_000\AppData\Local\Temp\tmpC2DB.cmd"
>"C:\Program Files (x86)\Git\bin\git.exe" filter-branch --index-filter "git rm -r -f --cached --ignore-unmatch freex3d/projectfiles_vc12/ipch/test_dotnetwrapper-d1e1b90f/test_dotnetwrapper-535493a8.ipch" --prune-empty -- --all
Rewrite b9aa0ccee2080444065ab5d6f26e833e2a1b8227 (1/5313)
Rewrite f691f0e4738e76b8b51fee3198edbf013e6a4891 (2/5313)
Rewrite 733b5eb1e5ca51e834ca33a094c09138835b2f30 (3/5313)

...20 minutes of Rewrite scrolling up form 1 to 5313...

Rewrite c2473e07e7517bfac166c38f28e37da3aa5271b1 (5308/5313)
Rewrite 19456c789e2aa3431ed483299b64f18ce45327e8 (5309/5313)
Rewrite 314dee4fda5cf6b920125fbee5132f00af9801ad (5310/5313)
Rewrite 80e8ac26cdf7505067832a250dc30e685910f350 (5311/5313)
Rewrite c12962a85e686dda9e9bab56bcd0b1f12d0d026d (5312/5313)
Rewrite 7e6c56dd5c8c13f86013b1258e7dac78c2b41ddc (5313/5313)
Ref 'refs/heads/master' was rewritten
Ref 'refs/heads/win2' was rewritten
Ref 'refs/heads/win3' was rewritten
Ref 'refs/heads/win4' was rewritten
Ref 'refs/heads/win5' was rewritten
Ref 'refs/heads/winThread' was rewritten
WARNING: Ref 'refs/heads/win_store' is unchanged
Ref 'refs/remotes/origin/master' was rewritten
WARNING: Ref 'refs/remotes/origin/fix_codegen_final' is unchanged
WARNING: Ref 'refs/remotes/origin/fix_outof_sync_codegen' is unchanged
WARNING: Ref 'refs/remotes/origin/master' is unchanged
WARNING: Ref 'refs/remotes/origin/out_of_sync_codegen' is unchanged
WARNING: Ref 'refs/remotes/origin/win_store' is unchanged
>"C:\Program Files (x86)\Git\bin\git.exe" filter-branch --index-filter "git rm -r -f --cached --ignore-unmatch freex3d/projectfiles_vc11/freeWRLAx/freeWRLAx.sdf" --prune-empty -- --all
Cannot create a new backup.
A previous backup already exists in refs/original/
Force overwriting the backup with -f
rm: cannot remove `/c/Users/Public/dev/source2/freewrl - Copy/.git-rewrite/backup-refs': Permission denied
rm: cannot remove directory `/c/Users/Public/dev/source2/freewrl - Copy/.git-rewrite': Directory not empty
>"C:\Program Files (x86)\Git\bin\git.exe" filter-branch --index-filter "git rm -r -f --cached --ignore-unmatch freex3d/projectfiles_vc11/freeWrl.sdf" --prune-empty -- --all
.git-rewrite already exists, please remove it
>"C:\Program Files (x86)\Git\bin\git.exe" update-ref -d refs/original/refs/heads/master
>"C:\Program Files (x86)\Git\bin\git.exe" update-ref -d refs/original/refs/heads/win2
>"C:\Program Files (x86)\Git\bin\git.exe" update-ref -d refs/original/refs/heads/win3
>"C:\Program Files (x86)\Git\bin\git.exe" update-ref -d refs/original/refs/heads/win4
>"C:\Program Files (x86)\Git\bin\git.exe" update-ref -d refs/original/refs/heads/win5
>"C:\Program Files (x86)\Git\bin\git.exe" update-ref -d refs/original/refs/heads/winThread
>"C:\Program Files (x86)\Git\bin\git.exe" update-ref -d refs/original/refs/remotes/origin/master
>"C:\Program Files (x86)\Git\bin\git.exe" reflog expire --expire=now --all
>"C:\Program Files (x86)\Git\bin\git.exe" gc --aggressive --prune=now
Done
Reply all
Reply to author
Forward
0 new messages