200225_TIL

First Project - day2

  • Toy Problem #30

  • 오늘 공부한 것

  • git error

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

현재 폴더에 git에 대한 정보를 담은 파일이 없기 때문에 발생하는 에러
git init를 수행하고 다시 git remote add 명령어를 실행하면 됩니다.
추가로 말씀드리면 git remote add는 이미 개발하고 있는 어떤 소스코드를 git에서 관리하고 싶어서 생성되어 있는 어떤 git repository에 현재 폴더를 연결하고자 할 때 사용할 수 있습니다.
어찌대뜬 not a git repository 에러가 나오면 git init 수행하고 다시 실행해보세요. 당연하지만 관리하려는 폴더의 최상위에서 git init 하시는게 좋겠죠? 출처: https://ngee.tistory.com/2185

Initialized empty Git repository in /Users/hongyounglan/Desktop/im17_project-cheerleader-client/.git/

profile
JavaScript를 공부하고 있습니다:)

0개의 댓글