놀랍게도 모두 제가 발생했던 오류들입니다..
저를 위해 정리해봤습니다 ㅎㅎ
1. .get/index.lock 에러
git add시 에러 발생
.get/index.lock 파일 직접적으로 제거함으로 해결
rm -f ./.git/index.lock
[GIT] .git/index.lock 에러
fatal: Unable to create '/path/.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other g..
88240.tistory.com
2 . LF will be replaced by CRLF 오류
git add시 에러 발생
(윈도우 명령어. 해당 프로젝트에만 적용하고 싶다면 --global 빼준다)
git config --global core.autocrlf true
(에러 메시지 끄고 알아서 작업하고 싶은 경우)
git config --global core.safecrlf false
[Git 경고 메세지] LF will be replaced by CRLF in 해결 방안
안녕하세요(・∀・)ゞ Git을 설치하고 GitBash에서 git add 명령어를 입력했는데 git add bora.txt warning: LF will be replaced by CRLF in bora.txt. The file will have its original line endings in your..
dabo-dev.tistory.com
blog.jaeyoon.io/2018/01/git-crlf.html
Git 에러 CRLF will be replaced by LF (혹은 반대) 핸들링하는 방법
맥/리눅스 이용 개발자와 윈도우 개발자가 협업할 때 왜 발생할까? 터미널에 git 명령어를 입력했는데 다음과 같은 에러가 뜨는 경우가 있다: ```bash warning: CRLF will be replaced by LF in some/file
blog.jaeyoon.io
3 . submodule add 오류
깃 클론으로 받은 폴더안에 있는 .git 폴더를 삭제하지 않고, git add시 에러 발생
git rm --cached 파일이름
[git] 실수로 submodule add 했을 때
hint: You've added another git repository inside your current repository. hint: Clones of the outer repository will not contain the contents of hint: the embedded repository and will not know how to..
humonnom.tistory.com
4. git status 했는데 다 커밋되었다고 나오는 경우
새 파일을 인식하지 못하는 경우
git 파일 직접 삭제한다. or rm -rf.git/
5. ! [rejected] master -> master(fetch first) 오류
깃이 원격 저장소와 현재 로컬 저장소가 동기화되어 있지 않은 경우
git push origin +master
[Git] ! [rejected] master -> master (fetch first) 에러 해결
안녕하세요, 기록하는 동구입니다. Git Repository에 있었던 프로젝트를 다 지워버리고 그 전에껄 지우고 새로운 프로젝트를 푸쉬하려했는데 푸쉬가 안된다! ➜ test git:(master) git push -u origin master To
donggu1105.tistory.com
6. RPC failed; curl 18 transfer closed with outstanding read data remaining 오류
push 하는 데이터가 많아 http postBuffer size를 초과한 경우
git config --global http.postBuffer 524388000
git config --global http.postBuffer 1048576000
error: RPC failed; curl transfer closed with outstanding read data remaining
I'm facing this error when I try to clone a repository from GitLab (GitLab 6.6.2 4ef8369): remote: Counting objects: 66352, done. remote: Compressing objects: 100% (10417/10417), done. error: RPC f...
stackoverflow.com
7. remote origin already exists 오류
origin 을 삭제해주고 다시 주소를 add해서 해결한다
git remote rm origin
git remote add origin repository주소
'Stay Hungry Stay Foolish > Git' 카테고리의 다른 글
Github 프로필 꾸미기 (0) | 2021.08.26 |
---|---|
Github pro 뱃지 받기 (4) | 2021.07.30 |
Git 오류 해결하기 2 (0) | 2021.03.03 |
Github / Git 입문하기 (2) | 2021.02.01 |
Git clone (0) | 2020.10.15 |
댓글