git error: remote: warning: Large files detected. / move folder

今天在用git上传文件的时候,一不小心多上传了个压缩包,130M,然后就出现问题了。。

1. Size of files uploaded
by Code Cloud Announcement from Code Cloud:

  对于普通用户码云单个仓库限制为1G,单个文件限制100M。如果超过限制,您的代码将无法推送,我们提供的只是代码托管平台, 不是网盘,二进制文件请勿存放在码云,我们会不定期执行仓库大小扫描,如果发现你您的仓库超过大小超过1G,我们会联系您处理, 如果您15个工作日内没有处理,我们将暂停您的仓库的访问,请注意,我们只是暂停您仓库的访问,并不是删除您的仓库, 如果您超过半年没有处理,我们将永久屏蔽该仓库的访问.

If the user warehouse submits more than 1GB, please reduce the volume of the warehouse locally and then empty the remote warehouse and push it to the remote server again. This strategy is suitable for large files.
Enterprise users can support larger warehouses.

Second, the solution
Baidu found that everyone has encountered this problem, the general solution is as follows:

git filter-branch -f –index-filter "git rm -rf –cached –ignore-unmatch FOLDERNAME" – –all
replace the FOLDERNAME with the location of your file or folder.

For example: the name of the over-standard file I uploaded is "example.zip", then you should enter:
git filter-branch -f –index-filter "git rm -rf –cached –ignore-unmatch example.zip" – –all

3. The size standard and modification of github uploaded files.
First of all, github is also 100M standard. If it exceeds it, it will not
work. Solution:
Enter the GitHub command window and enter the command:
Git config http.postBuffer 524288000.
The configuration in git before 524288000 does not have this item. After executing the above statement, enter git config -l;
you can see that there is an extra line at the bottom of the configuration item that we just configured. (52428000=500×1024×1024, that is, 500M)

Reference link:
http://blog.csdn.net/iechenyb/article/details/73469079
http://www.cnblogs.com/chen310/p/4658672.html
http://blog.csdn.net/timtian008/article /details/54379503


Insert picture description here


Insert picture description here

Guess you like

Origin blog.csdn.net/u013321328/article/details/108447939