git lfs
2021. 4. 10. 23:04ㆍgit
728x90
git에 대용량 파일을 추가하고 관리할 수 있도록 셋팅이 필요하다.
큰 이미지 파일이나 압축된 대용량의 파일이 있을 경우 git을 사용하는데 제한이 생긴다.
git lfs로 용량 제한을 완화시킬 수 있다.(2GB)
git-lfs rpm 파일을 다운로드 받아 설치하고 사용하면 된다.
github.com/git-lfs/git-lfs/releases
Releases · git-lfs/git-lfs
Git extension for versioning large files. Contribute to git-lfs/git-lfs development by creating an account on GitHub.
github.com
<<Ubuntu 리눅스 환경>>
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install
git lfs track [디렉토리 또는 파일이름]
git add .gitattributes
기존 git사용 방식대로 사용하면 됨.
git add .
git commit -m "커밋메시지"
git push
728x90
'git' 카테고리의 다른 글
[Git error] untracked working tree files would be overwritten (0) | 2021.06.06 |
---|---|
git add , git commit , git push "취소" (0) | 2021.04.26 |
git add/commit/push 취소 (0) | 2021.04.10 |
branch 삭제 (local , remote) + 그 외 git branch 옵션들 (0) | 2021.04.01 |
git error : the following untracked working tree files would be overwritten by checkout: 파일명 (0) | 2021.03.24 |