Github has a limitation that does not allow files over 100 MB to be versioned into its repositories.
The only way Github officially indicates to Versionar files with more than 100 MB is using the Git Large File Storage (Git LFS).
Basically, Git LFS allows commits to only point to these large files, which will be stored outside your Github repository, keeping within the commit only one pointing to the file that will be in another location.
Installation and use is very transparent. Every repository on Github already has one free account for use of Git LFS, which allows up to 2 GB of storage on the free plan.
Thus, after install the git lfs
and do the track of the file types you want to convert to Git LFS:
git lfs track "*.war"
All push
to the Github repository will already automatically upload the file to the Git LFS repository:
git add app.war
git commit -m "Add war file"
git push origin master
The return of push
will show something like this:
Sending app.war
44.74 MB / 81.04 MB 55.21 % 14s
It is possible change the repository used by Git LFS if you do not want to use the free Github repository.
Can you send the link from the repository please?
– Mateus Daniel
Sometimes here you have something that interests you https://answall.com/questions/432787/whereyou can go up
– hugocsl
In my view Git should be to control the software version and how it works and new features and organize work between small, medium and large teams ... Already the data should not even (with some exceptions) be "versioned", nor does it make sense this, the data must be part of the environment used and if you need a file larger than 100MB is because there is something wrong, unless it is another software that receives a "bind" from your current application, but still probably have something bad planned in the project itself.
– Guilherme Nascimento
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site
– Maniero
You do not score your questions, have no interaction with the crowd, check out the tour of the website
– novic