SiliconSloth / Metro

Simple and flexible version control and code syncing.
MIT License
1 stars 1 forks source link

Max 100MB File Size #79

Open Black-Photon opened 4 years ago

Black-Photon commented 4 years ago

Feature Description

Github doesn't allow files > 100MB to be uploaded. This is awkward for the user as they need to undo the commit before trying to fix the issue.

To prevent this, Metro should check the size of all files before committing. If a file is > 50MB it should give a warning and > 100MB should give an error.

Expected Behaviour

$ metro commit
You are trying to commit a file over the GitHub limit of 100MB.
If you are not using GitHub or are using GitHub LTS, you can disable this in the config using 'metro config file_limit=false'