我知道这个问题提了很多,很抱歉.但是我在StackOverflow上读过很多条目,但是我没有能够让它们发挥作用。所以它又来了,希望能得到一些指导.
背景:我正在一个项目中独自工作。我一直在GitHub上进行回购,而且一直运行得很好。基本上,我对推拉大师没有任何问题。这一次我有一个大文件+173 up,所以我决定尝试Git大型文件存储,它总是弹出。我遵循的是它在网站上说的那个过程:
brew install git-lfs
git lfs install
git lfs track "*.csv" (my file is a csv)
git add .gitattributes做完这件事后,我再也不能向师父推搡了。其信息是:
(venv-MBTI) (base) diego@DIGL Capstone 2 - MBTI % git push origin master
Uploading LFS objects: 100% (1/1), 345 B | 0 B/s, done.
Enumerating objects: 146, done.
Counting objects: 100% (135/135), done.
Delta compression using up to 4 threads
Compressing objects: 100% (116/116), done.
Writing objects: 100% (120/120), 59.90 MiB | 634.00 KiB/s, done.
Total 120 (delta 25), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (25/25), completed with 7 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: cb2e700c19f2bdbb2ca9aeb2df53605a
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File data/mbti_interim is 173.20 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/DSJourney/MBTI.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/DSJourney/MBTI.git'我尝试了我在StackOverflow中找到的大部分东西:
git pull --rebase
git reset --soft HEAD~1
git revert a2f2db2 (an older commit)
git push -u origin master我也试着跟着
其他不太相关的东西
我想我做错了什么,但一直没能弄清楚。
有什么建议吗?
发布于 2020-07-30 17:57:14
有两个提议的解决方案,正确的一个是由ElpieKay提出的:
data/mbti_interim。如果它有许多版本,只需将本地存储库复制到另一条路径即可。data/mbti_interim (链接)git lfs跟踪data/mbti_interim我还没有看到这个答案,所以我的解决方案是完全删除GitHub回购,然后在没有文件的情况下启动一个新的。
https://stackoverflow.com/questions/63145101
复制相似问题