231110 개발일지 TIL - fatal: not a git repository (or any of the parent directories): •git

The Web On Everything·2023년 11월 9일
0

개발일지

목록 보기
184/269
dev@ui-MacBookAir [프로젝트 폴더] % git remote -v
fatal: not a git repository (or any of the parent directories): .git
dev@ui-MacBookAir [프로젝트 폴더] % git remote add origin https://gitlab.com/[git 저장소명].git
fatal: not a git repository (or any of the parent directories): .git

문제 발생
프로젝트가 git 저장소에 연결이 되지 않아 git 저장소에 추가해주는 과정에서 발생한 현상

문제 원인
git 저장소를 사용하려면 해당 디렉토리에서 git init으로 저장소를 초기화 해줘야 한다.

해결 방법
그리고 git remote add origin [원격 저장소 URL] 명령어를 사용하여 원격 저장소를 추가해준다.

느낀 점
프로젝트에 git 저장소를 초기화 해주지 않았던가...

profile
오늘은 무슨 오류를 만날까?! 널 만나러 가는 길~ LOL

0개의 댓글