본문 바로가기

[Dev] 🎯Self Study/[코딩] 너 또 오류나 ? error 모음집

[Git 클론 오류해결] warning: adding embedded git repository: 그리고 unable to access ~ The requested URL returned error: 403

프로젝트 공부를 위해서 git clone을 해오던 중에 여러 문제가 동시에 발생했다..

(다른 사람의 repository 클론 시 문제)

 

1. warning: adding embedded git repository:

 

 

Github 에러 해결: "gwarning: adding embedded git repository:"

❓ 에러 메시지 Add 중 다음과 같은 에러를 마주했습니다(그림 1). gwarning: adding embedded git repository: mecab-0.996-ko-0.9.2/mecab-python-0.996 hint: You've added another git repository inside your current repository. hint: Clones o

heytech.tistory.com

 

warning: adding embedded git repository 해결

새 프로젝트를 만들고 그 안에 다른 프로젝트 레포지토리를 clone 해서 git add를 했더니 위와 같은 에러가 발생했다.처음 시도했던 방법clone 받은 각 폴더에 들어가서 git remote set-url origin <프로젝트

velog.io

해결방법 (easy)

문제가 되는 폴더 내 .git 파일을 모두 삭제

 

만약 계속 시도해도 안된다면 다시... 

 git rm --cached 문제가 된 파일

 

 

Git 자주 나오는 에러 모음

상황: git add . 한 경우 warning: LF will be replaced by CRLF the next time Git touches it 운영체제마다 줄바꿈 인식하는 방법이 달라서 생기는 오류이다. 해결법: git config --global core.autocrlf true 이라고 나와 있는

intshc.tistory.com


 

2. fatal: unable to access ~ The requested URL returned error: 403 에러 

 

 

 

[Git] The requested URL returned error: 403 Push 에러 해결 방법

서론 필자가 저 에러를 뱉기까지의 상황은 다음과 같다. 권한(Admin)을 부여받은 공용 repository를 fork한 후 작업 후 push하니까 다음과 같은 에러가 발생했다. 이 403에러는 github을 사용하기 위해 셋

jeongkyun-it.tistory.com

1.  확인

git remote -v

 

2. 레포지토리 복사해오기

git remote add origin "깃 레포지토리 주소 복사"

 

3. 다시 확인

git remote -v

여기서 추가한 내 레포가 나와야 정상작동하는 것이다. 

 

4. 올리기

git add .
git commit -m "커밋메시지"
git push origin master

 


끝난줄 알았지? 땡 탈락

이러시는 이유가 있을거 아니에요......

 

3.

 

 

error:failed to push some refs to 에러 해결법

이런 상황은 주로 git Repository 를 git clone 하고 push 하면 나오는 현상일텐데 여러 해결방법을 끄적끄적해보겠슴당이 에러가 무슨 뜻인냐면github에 내 Local 에 없는 파일이 있고, 내 파일을 push 할 면

velog.io

 

1. pull 먼저 받기

git pull {원격저장소 별칭 보통은 origin} master

2. 다 받았으면, push