Git Pull 실행 시 Not possible to fast-forward

2024. 2. 22. 17:36·git

몇 주를 헤맨 문제를 해결해주신 글 출처입니다.

https://itiformation.tistory.com/entry/Ubuntu-1804-git-pull-%EC%8B%A4%ED%96%89%EC%8B%9C-Not-possible-to-fast-forward-%EC%98%A4%EB%A5%98%EA%B0%80-%EB%B0%9C%EC%83%9D%ED%96%88%EC%9D%84-%EA%B2%BD%EC%9A%B0%EC%9D%98-%EB%8C%80%EC%9D%91

git pull를 실행했을 때 Not possible to fast-forward, aborting 로컬이랑 원격 저장소와 동기화 할 수없는 경우

​

- 원인

원격 저장소를 업데이트 한 후 git pull (= git fetch; git merge) 전에 로컬 저장소를 편집하여 commit 한 경우등에 발생하는것으로 파악

git pull remote branch 

$ git pull origin main --rebase

하 드디어 해결했다...

저작자표시 비영리

'git' 카테고리의 다른 글

git 경로 alias 설정  (0) 2024.02.06
git 초기 설정 (완전 첫 단계) remote/clone/push/pull  (0) 2024.02.05
'git' 카테고리의 다른 글
  • git 경로 alias 설정
  • git 초기 설정 (완전 첫 단계) remote/clone/push/pull
ssnong
ssnong
캠핑 맛집 여행 윈도우 리눅스 PHP DB 등 기록 공간입니다
  • ssnong
    호슐랭
    ssnong
  • 전체
    오늘
    어제
    • 분류 전체보기 (42)
      • Linux (21)
        • ubuntu (4)
        • Rocky 8.10 (16)
      • Windows (5)
      • git (3)
      • Lang (3)
        • javascript (3)
        • PHP (0)
      • Database (3)
        • MySQL8.0 (2)
        • MariaDB (1)
        • PostgreSQL(17.2) (0)
      • AWS (1)
      • ERROR! (4)
  • 링크

    • 일상은 여기서!
  • 공지사항

  • 인기 글

  • 태그

    git push
    rocky nftables
    nftables
    linux postgresql설치
    리눅스
    rocky postgresql설치
    ssh 접속
    linux nftables
    nginx php 소켓통신
    git pull
    rocky
    pg_hba.conf 설정
    rocky 8 postgresql 설치
    hyper-v vm 생성
    centos nftables
    리눅스 nftables
    Linux
    postgresql.conf 설정
    linux nft
    리눅스 nft
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
ssnong
Git Pull 실행 시 Not possible to fast-forward
상단으로

티스토리툴바