我正在嘗試使用將檔案添加到我的下一個 git 提交中
git add [filename]
這些檔案已設定為由 Git 大檔案存盤 (LFS) 跟蹤。但是,Git 給了我以下錯誤:
Encountered 1 file(s) that may not have been copied correctly on Windows:
Models/PITA/id_vector.pkl
See: `git lfs help smudge` for more details.
當我跑
git lfs help smudge
吉特告訴我:
git lfs smudge [<path>]
git lfs smudge --skip [<path>]
Read a Git LFS pointer file from standard input and write the contents
of the corresponding large file to standard output. If needed,
download the file's contents from the Git LFS endpoint. The <path>
argument, if provided, is only used for a progress bar.
Smudge is typically run by Git's smudge filter, configured by the repository's
Git attributes.
Options:
Without any options, git lfs smudge outputs the raw Git LFS content to
standard output.
* --skip:
Skip automatic downloading of objects on clone or pull.
* GIT_LFS_SKIP_SMUDGE:
Disables the smudging process. For more, see: git lfs config.
Known bugs
----------
On Windows, Git does not handle files in the working tree larger than 4
gigabytes.
For more information, see: https://github.com/git-lfs/git-lfs/issues
換句話說,這是一個已知的 Windows 錯誤。我的問題是,有沒有人找到解決這個問題的方法?
uj5u.com熱心網友回復:
如果您使用的是 Windows 2.34 或更高版本的 Git,則此問題已修復,此處的警告不再準確。在使用 Git for Windows 2.34 或更新版本時,它已在較新版本的 Git LFS 中被禁用。如果你有 Git 的更新版本,你可以忽略它。
請注意,這是一個 Git 問題;Git LFS 可以很好地處理這些問題,任何合理的最新版本都應該與適當更新的 Git 一起使用。此外,Unix 上的 Git 從來沒有遇到過這個問題,應該可以正常作業。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/431878.html
