! [remote rejected] main -> main (pre-receive hook declined) error 해결 방법

지은·2024년 2월 9일

Error 해결

목록 보기
1/1

✏️ 에러 문구

다음 에러는 100MB 이상의 대용량 파일을 push 할 때 발생한다.

remote rejected] main -> main (pre-receive hook declined) error


✏️ 에러 해결 과정 (Mac User 기준)

  1. brew install git-lfs

  2. git rm -r --cached "*"

  3. git add .

  4. git commit -m '메세지'

  5. git lfs migrate import --include="*.csv"

  6. git push origin 브랜치

참고 stackoverflow 링크


profile
꾸준한 개발자를 꿈꿈

0개의 댓글