-
Notifications
You must be signed in to change notification settings - Fork 1
Git LFS配置
Kervin edited this page Jun 25, 2018
·
6 revisions
- 1.下载Git安装
- 2.下载安装Git LFS
- 3.打开Git Bash客户端
cd /d/git/css-code/v6.1.2 //1
git init
git lfs track * //2
git add *.gitattributes
git add *
git commit -m "add *"
git lfs ls-files //3
git push origin master //4
//以上亲试1-4,出现错误配置
- git config lfs.https://github.com/dev-share/css-elasticsearch.git/info/lfs.locksverify false
- git config -l //检查一下配置信息
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
举例:
cd /d/GitHub/css-elasticsearch/elk
git alfs track "*/x-pack-*.zip"
git add *.gitattributes
git add */x-pack-*.zip
git commit -m "x-pack"
git push origin master