[이클립스-github] Push Confirmation 오류(rejected - non-fast-forward)

2022. 8. 8. 14:42·🚀 from error to study/Github

[error  내용]

 

 

이클립스에서 github로 commit & push를 할 때 가끔 rejected - non-fast-forward 오류가 뜸

나는 commit & push를 진행했는데 github는 업데이트되지 않았고

이클립스상의 staging 영역에서 파일도 사라지기 때문에 매우 불안

 


[error  해결 방법]

 

 

브랜치의 경로를 재설정해 주면 됨

브랜치의 경로가 바뀌거나 로컬 혹은 git 폴더인 브랜치 저장소에 변경사항이 있을 때

이러한 현상이 나타나는 듯함 

  

 

 

이클립스 window - Show View - Other - Git - Git Repositories 추가

 

 

Git Repositories에서 해당 저장소의 Remotes - origin - ↓ 저장소 이름 - Configure Fetch 클릭

 

Ref mappings에 경로 존재하는 것 확인 후 Advanced... 접속

기존 경로가 있다면 삭제 후 Add create/update specification 창의 2칸 모두 내가 원하는 저장소의 로컬, 깃허브 브랜치 선택 후 Add Spec 클릭, Finish 클릭

 

Save and Fetch

 

Git Repositories - Branches - Local - 로컬 저장소 이름 - Merge 클릭

Remote Tracking - 저장소 클릭 후 Merge 클릭

 

원하는 프로젝트 - Team - Remote - Push

 

Push가 잘된 것 확인!

 

저작자표시 (새창열림)
'🚀 from error to study/Github' 카테고리의 다른 글
  • [Eclipse-Git] commit 취소하는 법 (revert commit)
  • [github] 깃허브 컴퓨터별 잔디 안 심어지는 오류
  • [이클립스-github] github-이클립스 pull 후 import 안 됨
  • [이클립스 error] The project was not build path is incomplete. Cannot find the class file for java.lnag.Object. Fix the build path thn try building this project.
천재강쥐
천재강쥐
  • 천재강쥐
    디버거도 버거다
    천재강쥐
  • 전체
    오늘
    어제
    • Category (467)
      • 진짜 너무 궁금한데 이걸 나만 몰라...? (0)
      • 💾 Portfolio (2)
      • 🐤 CodingTest (28)
        • Java (20)
        • ᕕ(ꐦ°᷄д°᷅)ᕗ❌ (5)
      • 🚀 from error to study (142)
        • AI (1)
        • Cloud (2)
        • DB (12)
        • Front-End (16)
        • Github (14)
        • Java (39)
        • Mac (7)
        • Normal (29)
        • Server (22)
      • 📘 certificate (44)
        • 📘 리눅스마스터1급 (1)
        • 📘⭕️ 정보처리기사 (40)
        • 📘⭕️ SQLD (3)
      • 📗 self-study (234)
        • 📗 inflearn (35)
        • 📗 생활코딩 (8)
        • 📗 KH정보교육원 당산지원 (190)
      • 🎨 Scoop the others (0)
        • 📖 Peeking into other people.. (0)
        • 🇫🇷 (0)
        • 📘⭕️ 한국사능력검정시험 심화 (11)
        • 오블완 (4)
  • 인기 글

  • hELLO· Designed By정상우.v4.10.1
천재강쥐
[이클립스-github] Push Confirmation 오류(rejected - non-fast-forward)
상단으로

티스토리툴바