Skip to content

Latest commit

 

History

History
114 lines (80 loc) · 2.04 KB

File metadata and controls

114 lines (80 loc) · 2.04 KB

Everything up-to-date

Everything up-to-date 는 push 할 내용이 없다고 Git이 판단했을 때 나오는 메시지이다.

즉, 현재 branch에서 원격 저장소로 올릴 새로운 commit이 없다는 뜻이다.


1. 언제 발생하나

보통 아래 경우에 나온다.

  • commit을 안 했는데 push 했을 때
  • 다른 branch에서 작업해놓고 현재 branch를 push 했을 때
  • 이미 같은 commit이 원격 저장소에 올라가 있을 때
  • remote나 branch를 잘못 보고 push 했을 때

2. 대표 예시

git push origin main
Everything up-to-date

3. 가장 먼저 확인할 것

현재 branch 확인

git branch

현재 상태 확인

git status

commit 기록 확인

git log --oneline --decorate -5

원격 저장소 확인

git remote -v

4. 자주 있는 원인

1) add만 하고 commit 안 함

git add . 만 했다고 바로 push 되는 것이 아니다.

git add .
git commit -m "commit message"
git push origin main

2) 다른 branch에서 작업함

예를 들어 dev 에서 작업했는데 main 에 push 하면 Everything up-to-date 가 뜰 수 있다.

확인:

git branch

3) 이미 올라간 commit임

이미 원격 저장소와 같은 상태면 당연히 push 할 내용이 없다.


5. 해결 방법

수정사항이 아직 commit 안 된 경우

git add .
git commit -m "commit message"
git push origin main

현재 branch가 잘못된 경우

git branch
git push origin <current-branch>

원격 저장소 연결이 이상한 경우

git remote -v

6. 내가 확인하는 순서

git status
git branch
git log --oneline --decorate -5
git remote -v

7. 한 줄 정리

Everything up-to-date
push 자체가 실패한 게 아니라, Git이 올릴 새 commit이 없다고 판단한 상태이다.