version https://git-lfs.github.com/spec/v1 oid sha256:5b62e134d2478ae0bbded57f6be8f048d8d916cb876f0656a8a6d1363716d999 size 285
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs env --Display the Git LFS environment.
Error: Failed to call git rev-parse --git-dir: exit status 128
git init //解决上述问题:Error: Failed to call git rev-parse --git-dir: exit status 128 git lfs install --Install Git LFS configuration.
git lfs env
git clone git lfs clone
git pull git lfs pull
$ git lfs track "*.ogg" Tracking *.ogg --View or add Git LFS paths to Git attributes.
git lfs track "*.ogg" git add . //git add .gitattributes git commmit -m "log" git push
git lfs track
git lfs track "*.iso" git add .gitattributes git add file.iso git commit -m "Add disk image" git push
EXAMPLES To get started with Git LFS, the following commands can be used. 1. Setup Git LFS on your system. You only have to do this once per repository per machine: git lfs install 2. Choose the type of files you want to track, for examples all ISO images, with git-lfs-track(1): git lfs track "*.iso" 3. The above stores this information in gitattributes(5) files, so that file need to be added to the repository: git add .gitattributes 4. Commit, push and work with the files normally: git add file.iso git commit -m "Add disk image" git push
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70003733/viewspace-2907385/ ,如需转载,请注明出处,否则将追究法律责任。