github 무료 계정은 용량이 500메가로 제한된다. 그러나 public repository는 무제한으로 500메가 제한에 포함되지 않는다.

 

그러나 public repository라도 크기가 100메가 이상인 파일은 올리지 못하게 되어 있다.

 

해결방법은

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

 

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

에 방문하여 파일을 다운 받아 설치한다. 윈도우에선 아무데서나 그냥 설치하면 된다.

 

2. 큰 파일이 들어간 local repository로 가서

3. git-bash 에서  다음과 같이 입력한다.

$ git lfs install

$ git lfs track "큰 파일 이름 또는 *.data 와 같은 형식"

$ git add .gitattributes

$ git add .

$ git commit -m "add a large file"

$ git push

 

와 같이 차례대로 하면 된다.

 

+ Recent posts