본문 바로가기
git

git 에러 (Push error)- On branch main nothing to commit, working tree clean

by zkzk7290 2024. 9. 15.
반응형
git  commit -m "메시지 입력" -> On branch main nothing to commit, working tree clean (git은 커밋할 것이 없고 작업 드렉토리는 깨끗합니다)라는 설명  

이 에러 메세지는  push error 중에 하나이다.

git psuh를  사용해서 변경 사항을 푸시해야 합니다.

 

해결 방안

1) rm -rf. git/
2) git init
3) git commit -m “메시지 입력”
4) git remote add origin 레포지토리 주소
5) git push -f origin main

 

반응형

'git' 카테고리의 다른 글

Git 메시지에 관한 글  (0) 2025.03.21
git 실행원리  (1) 2025.02.08
git 협업을 위한 Organization 만들기  (3) 2024.10.09