git-lfs - 如何使用 GIT-LFS 重写 GIT 历史记录以跟踪整个目录
问题描述
我尝试了很多命令,但它不起作用:
java -jar bfg-1.13.0.jar --convert-to-git-lfs 'lib/**' --no-blob-protection
java -jar bfg-1.13.0.jar --convert-to-git-lfs 'lib' --no-blob-protection
java -jar bfg-1.13.0.jar --convert-to-git-lfs 'lib/*' --no-blob-protection
java -jar bfg-1.13.0.jar --convert-to-git-lfs '*/lib/*' --no-blob-protection
BFG repo 清洁器是否支持它?如果是这样,命令是什么?
解决方案
我设法做到了这一点git lfs migrate import --include 'lib/**'
。它创建了正确.gitattributes
的,因此 git 将很好地处理您未来的克隆、拉取、签出和提交操作。
推荐阅读
- django - Create Object with Foreign key with Serializer
- php - 联系表格不会在按钮按下时提交
- python - 如何通过 2 行读取数据帧以返回半长数据集
- android - Android UsbAccessory return null in android 8 and above
- python - 在日历上画几天
- ansible - How to make generic AWX Job templates applicable for machines with different username to SSH?
- python - 为给定列中的每个唯一元素重复 DataFrame 的元素
- moodle - 如何直接进入问卷插件中的问题页面
- html - 如何使用ngIf在每次点击时继续添加文本框
- javascript - 无法在 React 中检索 prop 的值