프로젝트/us:sum

[에러 해결]does not have a commit checked out / fatal: adding files failed.

김낙락 2024. 5. 2. 11:10

며칠을 익숙치 않은 깃 때문에 쩔쩔 맴..ㅠㅠ...

 

https://shortcuts.tistory.com/13

 

Git 에러 해결 - does not have a commit checked out / fatal: adding files failed.

상황 git add 시 다음과 같은 에러가 발생했다. error: 'FILENAME' does not have a commit checked out fatal: adding files failed 원인 로컬 저장소(내 컴퓨터)에 .git 파일이 여러 개 있다. 해결 방법 중복 생성된 .git을

shortcuts.tistory.com

이거 보고 .git 파일들은 다 지워주긴 했는데

결국엔 그냥 다시 다 지우고 새로운 마음으로 해결함..ㅠㅠ...

 

 

 

https://www.youtube.com/watch?v=cwC8t9dno2s

이거 보고 다시 처음부터 다시 함..

이게 제일 도움 많이 됐음..ㅠ

 

 

깃클론은 끝냈으니 앞으로 매번 해야하는것은

 

$ git add .

 

$ git commit -m "메세지"

 

$ git pull origin main

 

$ git push origin main

 

이렇게 해주면 받고...올라간다...

 

(내 위치는 ~~~frontend에서 해줘야함 명심!)

 

 

https://www.youtube.com/watch?v=tkkbYCajCjM

이것도 참고하기