On Friday, May 8, 2015 at 2:15:29 AM UTC+5:30, Roger Mendes wrote:
>
> Allow .gitignore to support setting a file size limit so that all files 
> over a certain size will by automatically ignored when performing git add, 
> commit -a...; 
> Exclusions to this size limit for files can be allowed by specifying 
> exceptions '!' syntax that already exists. It probably should be considered 
> to have a default limit already built into git of say 100MB (used by 
> github) which can be changed in the .gitignore file.
>
> This would avoid accidental commits of large files which are known to be 
> poorly supported.
>
> Well IMHO you can always use some script such as 
find . -size +10M >> .gitignore

Also have you heard of this extension https://git-lfs.github.com/ I would 
suggest this if you are in need to use the binary files too

This seems like a fairly simple feature to add, I'm not sure why no one has 
> done this or thought of it given the number of complaints, questions... 
> with large file handling.
>
> We can ignore by file name attribute, why not by file size?
>
> Yes, I know I can add pre-commit scripts... to workaround this issue, but 
> there should be a better way (or maybe I'm missing something?).
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to