본문 바로가기

728x90
반응형
SMALL

Tool/Git

(4)
[Git] .DS_Store 삭제후 다시 commit local folder에서 .DS_Store 삭제 후 commitfind . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch -fecho .DS_Store >> .gitignoregit add .gitignoregit commit -m ".DS_Store is banished"git push origin main
[Git] non-fast-forward 오류 non-fast-forward 오류가 발생한 것을 보니, 원격 저장소의 변경 사항을 로컬 저장소로 가져와 병합한 후 다시 푸시해야 합니다. 이를 해결하기 위해 git pull 명령어를 사용해 원격 브랜치의 변경 사항을 로컬 브랜치에 병합하고, 푸시하는 방법을 다시 시도해 보겠습니다.원격 저장소의 변경 사항을 가져오기 (fetch) git fetch origin 로컬 브랜치와 원격 브랜치 병합 (merge) git merge origin/main --allow-unrelated-histories  충돌 해결 및 커밋 (충돌 발생 시)충돌 파일 수정수정된 파일을 스테이징git add 충돌 해결 커밋git commit -m "Resolve merge conflict" 만약 병합 중에 충돌이 발생하..
[Git] this exceeds GitHub's file size limit of 100.00 MB : git lfs large file 추가 방법 errorthis exceeds GitHub's file size limit of 100.00 MB  git lfs 설치Linux(Debian): apt-get install git-lfsLinux(Red Hat): yum install git-lfsmacOS(brew): brew install git-lfsWindows: 사이트에서 다운로드설치후, 폴더 에서git lfs install lfs 등록 (.gitattributes 파일에 등록됨)git lfs track 100MB 넘었다고 에러난 파일을 모두 track 해제하고 lfs track 등록하자이전 commit 삭제하고이전 커밋을 삭제하고 변경 사항을 유지git loggit reset HEAD^ --soft그 후 add commit하면Large 파일..
[Git] fatal: the remote end hung up unexpectedly 에러 git post buffer size 문제git config --global http.postBuffer 1048576000git config --global http.postBuffer 524288000postBuffer 사이즈 늘려주기 혹은 나눠서 넣기.gitignore 파일 활용캐시 삭제git rm -r --cached .git rm -r --cached . -f  추가 error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400git config --global http.version HTTP/1.1

728x90
반응형
LIST