본문 바로가기
개발 공부/Git&GitHub

error - Newer Commits on Remote

by 느림보어른 2021. 5. 25.

발생 과정

토이 프로젝트 파일 변경사항을 GitHub Desktop을 통해 GitHub에 fetch 하려고 했지만 오류가 발생했다.

해결

  1. GitHub Desktop 상단에 Repository 항목에서 Open in Command Prompt를 클릭하여 cmd창을 연다.
  2. E:\project\todolist_renewal>git branch -u origin/master 명령어를 입력한다.
  3. Branch 'master' set up to track remote branch 'master' from 'origin'. 가 뜨면 다시 GitHub Desktop으로 돌아와 Fetch origin을 진행한다.

출처

https://github.com/desktop/desktop/issues/10362

 

Newer Commits on Remote · Issue #10362 · desktop/desktop

Describe the bug I am unable to publish on the website via the desktop application (Mac). Whenever, I have attempted to publish, I get and error stating that I have commits on the remote not on my ...

github.com