极客油画

  1. 配置.lfsconfig

  2. 配置.gitattributes

方式一
git lfs track 'cat.bin'
git lfs track

方式二
vim .gitattributes
git add .gitattributes

## 查看状态
git lfs ls-files

Encountered 1 file(s) that should have been pointers, but weren’t

git lfs uninstall
git reset --hard
git lfs install && git lfs pull

如果还是不行,就执行:
git rm --cached -r .
git reset --hard
git rm .gitattributes
git reset .
git checkout .

.gitattributes的其他设置

# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary

本文发表于 0001-01-01,最后修改于 0001-01-01。

本站永久域名「 jiavvc.top 」,也可搜索「 极客油画 」找到我。


上一篇 « 下一篇 »

赞赏支持

请我吃鸡腿 =^_^=

i ysf

云闪付

i wechat

微信

推荐阅读

Big Image