기록/Error
[Error] error: failed to push some refs to
hongchii
2021. 2. 26. 12:26
728x90
반응형
error: failed to push some refs to
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
터미널, 소스트리로 전부 저런 에러가 뜨면서 push가 안되더라
혹시 push할 때 다음과 같은 오류가 났다면 아마 위에서 말한 원격 저장소와 로컬 저장소의 상태가 달라서 나는 오류일 것이다.
그러니 pull을 먼저 해주어 둘의 상태를 같게 한 다음 push를 해준다
그리고 'git status'를 통해서 현재 git의 상태를 알 수 있으니 오류 해결에 적극 이용
하기 바란다!
출처:
https://dh-dh.tistory.com/47
[자비스]
위 글을 참고하여 그냥 모든 파일 commit 하고 push 했더니 잘 올라간거 같다.
원격 저장소와 로컬 저장소의 상태가 달라서 나는 오류
가 맞았던듯?
728x90
반응형