}

Git Lfs 하는 방법 보러 오시오!

Git LFS

 

Git Large File Storage

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

git-lfs.github.com

먼저 위 링크에 들어가서  LFS를 다운받습니다.


push해야 할 폴더에 우클릭하고 Git Bash Here (혹은 터미널)을 찾습니다.


1단계로 git lfs install을 해줍니다.


성공적으로 install이 되면 위 사진 메세지처럼 뜹니다.


2단계로 git lfs track "폴더 이름"을 적습니다.

 

폴더이름은 예시이므로 만약 위 사진 101MB File을 올리기 위해서는 git lfs track "101m.file"을 해주면 됩니다.

 

LFS 트래킹하는 녀석들

예를 들어, libcef.dll이 크다 싶으면 경로를 입력할 필요 없이 해당 "libcef.dll" 녀석만 작성하면 됩니다.

git lfs track "libcef.dll" 이렇게 말이죠!



마지막 3단계로

git add .gitattributes를 해줍니다.
 

추가된 git add .gitattributes

프로젝트 폴더에 이 파일이 생기면 성공입니다.