install git-lfs on ubuntu and use it

xiaoxiao2025-10-22  11

https://stackoverflow.com/questions/48734119/git-lfs-is-not-a-git-command-unclear

Ubuntu

$ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash

sudo apt-get install git-lfs

After installing, you can install using:

git lfs install

https://git-lfs.github.com/

Getting Started Download and install the Git command line extension. You only have to set up Git LFS once.

git lfs install Select the file types you’d like Git LFS to manage (or directly edit your .gitattributes). You can configure additional file extensions at anytime.

git lfs track “*.psd” Make sure .gitattributes is tracked

git add .gitattributes There is no step three. Just commit and push to GitHub as you normally would.

git add file.psd git commit -m “Add design file” git push origin master

转载请注明原文地址: https://www.6miu.com/read-5038361.html

最新回复(0)