jujuwon
시크릿주주
jujuwon
전체 방문자
오늘
어제
  • 분류 전체보기 (106)
    • 🔠 프로그래밍언어 (35)
      • ☕️ Java (19)
      • 🐠 Python (15)
      • 🍠 Kotlin (1)
    • 🔙 Backend (16)
      • 🌿 Springboot (12)
      • 🐳 Docker (1)
      • ☁️ AWS (3)
    • 💼 CS (12)
      • 📶 Network (12)
    • 🕹 알고리즘 (14)
      • 📑 스터디 (2)
      • 💁🏻‍♂️ 백준 (9)
      • 👨🏼‍🔬 프로그래머스 (3)
    • 📚 Book (8)
      • 🔎 오브젝트 (4)
      • 🧪 TDD (2)
      • 📜 논문 (2)
    • 🔐 보안 (7)
      • 👾 Pwnable (7)
    • 📝 회고 (4)
    • 🧩 etc. (10)
      • ⚠️ issue (2)
      • 💡 꿀팁 (7)
      • ✏️ 끄적 (1)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

인기 글

최근 글

hELLO · Designed By 정상우.
jujuwon

시크릿주주

Github :: Git LFS 로 Large Size 파일 관리
🧩 etc./💡 꿀팁

Github :: Git LFS 로 Large Size 파일 관리

2022. 8. 21. 10:29
반응형

에러

remote: error: GH001: Large files detected.
You may want to try Git Large File Storage - https://git-lfs.github.com.

 

Enumerating objects: 16, done.
Counting objects: 100% (16/16), done.
Delta compression using up to 8 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (14/14), 188.62 MiB | 2.82 MiB/s, done.
Total 14 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote: warning: File is 51.09 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
remote: error: Trace:
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File is 109.53 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To github.com:
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'github.com:'

 

해결방법


  • git-lfs 를 사용해 commit 과정에 지정한 파일을 조각내어 해결할 수 있다.

Git-LFS 설치

  • Mac
brew install git-lfs

Repo LFS 적용

git lfs install

해당 파일 Unstaging (git add 취소)

git rm -r --cached "파일명"

업로드 파일 선택

git lfs track "파일명"

.gitattributes와 업로드 파일 push

git add .gitattributes
git add "파일명"
git commit -m "메시지"
git push origin main
  • LFS 트래킹 파일은 .gitattributes 를 통해서 관리된다.
  • 업로드 파일과 .gitattributes 를 같이 add 하기 !
728x90
반응형
저작자표시 (새창열림)
    '🧩 etc./💡 꿀팁' 카테고리의 다른 글
    • 우리팀의 코딩 컨벤션 정하기
    • Mac :: 터미널에 이모지 나타내기
    • IntelliJ :: Mac용 단축키 모음
    • System :: ARM Assembly 정리
    jujuwon
    jujuwon

    티스토리툴바