목차
Git에 대용량 파일 저장하는 방법
# Git LFS 설치
brew install git-lfs
git lfs install
# 대용량 파일 LFS로 추적
git lfs track "assets/video/iphone77.mp4"
"*.확장자명" 해주면 모든 확장자 파일을 추가 할 수 있다.
# 변경사항 다시 커밋
git add .gitattributes
git commit -m "Track large video file with LFS"
# 변경사항 푸시
git push origin main
Git에 대용량 파일 다운로드하는 방법
# Git LFS 설치
brew install git-lfs
git lfs install
# 대용량 파일 받아오기
git lfs fetch
git lfs checkout
반응형
'Git' 카테고리의 다른 글
[새싹x코딩온] 웹 개발자 부트캠프 1주차 | Git 설치 및 환경설정 (2) | 2023.07.19 |
---|