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
와 같이 차례대로 하면 된다.
'Git' 카테고리의 다른 글
github에 블로그 만들기 (0) | 2019.12.28 |
---|---|
Git Bash에서 notepad++ 사용하기 (0) | 2019.12.25 |
윈도우즈용 Git Bash의 디폴트 홈 디렉토리 변경하기 (0) | 2019.12.25 |
원격저장소명 삭제 (0) | 2019.12.23 |
git remote branch 가져와서 로컬에 반영하기 (0) | 2019.12.23 |