👨🏻‍💻iOS 공부/ErrorHandling

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

728x90
반응형

 

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

 

git remote로 repo를 연결하려고 할 때 발생하는 에러이다. 

 

원인 : git init을 하지 않았기 때문

 

해결 방법 : 현재 경로에서 아래대로 실행

git init 
// "name"에는 원하는 remote 이름 
// "repo url"에는 github repository url
git remote add "name" "repo url"
728x90
반응형