5

我有一个承诺,我正在努力推动它。我得到这个回应

Git LFS: (0 of 9 files, 9 skipped) 0 B / 3.24 GB, 3.24 GB skipped
[422] Size must be less than 2147483648
[0ee4f2bc4d42d98ea0e7b5aeba2762c7482f3bcf00739d40b922babe8061820b] Size must be less than 2147483648
error: failed to push some refs to ...

这些是什么文件?

如何从我的提交中找到并删除它们,以便我可以推送所有这些文件?

4

1 回答 1

8

A simple

git ls-files

will give you a listing of files currently managed by git.

With a bit of pipe magic, the file over size limit get's pretty easy to spot

git ls-files -z | xargs -0 stat -c '%s %n' | sort -n 

will give you an ascendingly sorted list of file sizes and corresponding files.

于 2016-06-01T18:57:59.983 回答