Everything up-to-date 는 push 할 내용이 없다고 Git이 판단했을 때 나오는 메시지이다.
즉, 현재 branch에서 원격 저장소로 올릴 새로운 commit이 없다는 뜻이다.
보통 아래 경우에 나온다.
- commit을 안 했는데 push 했을 때
- 다른 branch에서 작업해놓고 현재 branch를 push 했을 때
- 이미 같은 commit이 원격 저장소에 올라가 있을 때
- remote나 branch를 잘못 보고 push 했을 때
git push origin main
Everything up-to-dategit branchgit statusgit log --oneline --decorate -5git remote -vgit add . 만 했다고 바로 push 되는 것이 아니다.
git add .
git commit -m "commit message"
git push origin main예를 들어 dev 에서 작업했는데 main 에 push 하면 Everything up-to-date 가 뜰 수 있다.
확인:
git branch이미 원격 저장소와 같은 상태면 당연히 push 할 내용이 없다.
git add .
git commit -m "commit message"
git push origin maingit branch
git push origin <current-branch>git remote -vgit status
git branch
git log --oneline --decorate -5
git remote -vEverything up-to-date 는
push 자체가 실패한 게 아니라, Git이 올릴 새 commit이 없다고 판단한 상태이다.