I have a specific directory storing big executive files (other built projects) that are changing constantly and when those files are changing, my repository size increases to the size of files that were changed. I need to stop saving those files in history. I tried to mark directory binary in .gitattributes file, but that didn't work. Any suggestions?
Hi @esmoley
You can migrate those big files to Git LFS with Bitbucket. Files uploaded to LFS only count against your LFS usage; they don't count against the repo size limit.
Let me know if you have any further questions
Yeah. This option helped to separate these big files apart of the main project. It moved a folder with those files to Git LFS, but each update keeps the history of those files which increases its size. In ".gitattributes" I added
public/files/* filter=lfs diff=lfs merge=lfs -binary
Firstly there was -text instead of -binary, but with that setting, capistrano downloads text pointers instead of the actual files.
So, the problem still persists, but now it in GIT LFS.
Maybe I am doing something wrong?!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @esmoley .
Sorry but Git isn't designed for backups like this and there isn't any out of the box solution for this scenario. Git LFS will provide a way to track these without compromise your repository size, however, it will count against the LFS usage.
Let me know if I can provide any help.
PS
One way to accomplished that is to have a separate repository containing this files and every time you need to update them use a git commit --amend followed by a git push ---force-with-lease. Be cautious :) as you are not going to keep any history of this files
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.