TS_*_*TS_ 5 git git-lfs git-lfs-migrate
为了将我的 Git 存储库迁移到 Git LFS,我执行了以下命令:
> git lfs migrate import --everything --include="*.dll"
migrate: Sorting commits: ..., done.
migrate: Rewriting commits: 100% (9376/9376), done.
{long list of branch names and hashes}
migrate: Updating refs: ..., done.
migrate: checkout: ..., done.
Run Code Online (Sandbox Code Playgroud)
然后再次使用“info”选项:
> git lfs migrate info --everything --include="*.dll"
migrate: Sorting commits: ..., done.
migrate: Examining commits: 100% (13199/13199), done.
*.dll 451 MB 380/380 files(s) 100%
Run Code Online (Sandbox Code Playgroud)
这是否意味着历史上451MB的dll文件被转换为LFS存储?或者他们不是?如果我在没有 --include 选项的情况下获取信息,它会显示以下内容:
> git lfs migrate info --everything
migrate: Sorting commits: ..., done.
migrate: Examining commits: 100% (13199/13199), done.
*.a 652 MB 55/55 files(s) 100%
*.dll 451 MB 380/380 files(s) 100%
*.cpp 214 MB 2605/2605 files(s) 100%
*.docx 109 MB 49/49 files(s) 100%
Run Code Online (Sandbox Code Playgroud)
为什么 .cpp 文件(和其他文件)与 .dll 文件一起包含在列表中?我从未有意将 .cpp 文件转换或迁移到 Git LFS。