【git lfs 问题记录】
报错如下
WARNING: error running /usr/lib/git-core/git ‘config’ ‘–includes’ ‘–global’ ‘–replace-all’ ‘filter.lfs.smudge’ ‘git-lfs smudge – %f’: ‘error: could not write config file /root/.gitconfig: Device or resource busy’ ‘exit status 4’
Run git lfs install --force
to reset git config.
添加配置
- vim ~/.gitconfig
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true