git add .
를 했을때 fatal: not a git repository (or any of the parent directories): .git 이런 에러가 나와 git에 추가가 안된다
원인은 현재 폴더에 git에 대한 정보를 담은 파일이 없기 때문에 발생하는 에러이다.
해결방법
git init
git remote add origin (github 아이디)
'Dev > CS' 카테고리의 다른 글
[Git] Pull 에러 해결하기 "Please commit your changes or stash them before you merge." (2) | 2024.07.24 |
---|---|
[Git] git branch --set-upstream-to 에러 (0) | 2024.07.10 |
댓글