본문 바로가기
Dev/CS

fatal: not a git repository (or any of the parent directories): .git

by jusep 2024. 1. 4.
git add .

를 했을때  fatal: not a git repository (or any of the parent directories): .git 이런 에러가 나와 git에 추가가 안된다

 

원인은 현재 폴더에 git에 대한 정보를 담은 파일이 없기 때문에 발생하는 에러이다.

 

해결방법

git init
git remote add origin (github 아이디)

댓글