Latest trying to write a script to configure a key Linux, so we must install some software strategy, but sometimes have to install the source code is better, and some things directly to Github will be very convenient, but also more than 100MB, Github normal circumstances under is allowed to upload files larger than 100MB, but can be directly git LFS.
Specifically OK:
Https://Towardsdatascience.Com/uploading-large-files-to-github-dbef518fa1a
Https://Blog.Csdn.Net/Tyro_java/article/details/53440666
Anyway, is that you can use on the right, the user can have a free 1GB of space for large files.
Concrete is installed git-LFS , to download, and then the operation is the meal:
- Start with an empty warehouse in the web
- Then build a warehouse with the same folder name, and perform the initialization commands:
git init
- Then execute
git lfs install
- Then add the name of the file you want to upload or suffix:
git lfs track '*.zip'
- Then put the resulting
.gitattributes
first spread to remote repositorygit add .gitattributes
git commit -m 'large - init file'
git push -u origin master
# First secondary performed such re-transmission back ongit push
line.
- Then you can add the normal upload large files!
git add bigfile.zip
git commit -m 'upload Big file.'
git push
# First secondary performed such re-transmission back ongit push
line.
- Delete remote file repository, but does not remove local files, such as
bigfile.zip
git rm bigfile.zip
git commit -m 'rm bigfile.zip'
git push