git pull이 안되는 문제: rebase로 해결하기

트러블슈팅
2024. 10. 16. 10:19
목차
  1. 충돌난 상황
  2. 해결 과정
728x90

충돌난 상황

  1. featrue/signup-test-api 브랜치에서 로컬에서 작업후 커밋
  2. remot에서 featrue/signup-test-api 브랜치의 내용이 변경

이후 로컬에서 pull을 하려니까 위 사진과 같이 pull이 되지 않았다. 새로운 커밋을 남기지 않고 pull 할 수 있는 방법인 rebase 를 사용해서 문제 해결.

 

해결 과정

git pull 에서 에러가 난 브랜치에서 아래 명령어 실행해서 원격에 수정된 최신 코드를 로컬의 ref/remotes/origin/{branch_name}에 받아온다.

git fetch

 

아래 명령을 실행해서 원격 코드 위에 다시 로컬 코드들을 순서대로 쌓는다(커밋)

git rebase origin/{branch_name}

 

728x90

'트러블슈팅' 카테고리의 다른 글

ERROR: failed to solve: ubuntu:latest: failed to resolve source metadata for docker.io/library/ubuntu:latest: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``  (0) 2024.10.25
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: ~: connect: permission denied  (0) 2024.10.17
Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: failed to lazily initialize a collection of role: ~: could not initialize proxy - no Session]  (0) 2024.09.06
denied: requested access to the resource is denied  (0) 2024.09.06
ERROR: failed to solve: eclipse-temurin:17-jdk-alpine: failed to resolve source metadata for docker.io/library/eclipse-temurin:17-jdk-alpine: no match for platform in manifest: not found  (0) 2024.09.06
  1. 충돌난 상황
  2. 해결 과정
'트러블슈팅' 카테고리의 다른 글
  • ERROR: failed to solve: ubuntu:latest: failed to resolve source metadata for docker.io/library/ubuntu:latest: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
  • permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: ~: connect: permission denied
  • Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: failed to lazily initialize a collection of role: ~: could not initialize proxy - no Session]
  • denied: requested access to the resource is denied
hapBday
hapBday
hapBday
개발자로 성장하기 위한 기록들
hapBday
전체
오늘
어제
  • 분류 전체보기 (203) N
    • CS (12)
      • 컴퓨터네트워크 (11)
      • 운영체제 (0)
      • 분산 시스템 (0)
      • 데이터베이스 (1)
    • Spring (47)
      • Spring 핵심 원리 (13)
      • Spring MVC (15)
      • Spring DB (12)
      • Spring Security (6)
    • JPA (14)
    • 알고리즘 (30)
      • 프로그래머스 (6)
      • 백준 (20)
    • Design Pattern (0)
    • 언어 (5)
      • JAVA (5)
    • ASAC 웹 풀스택 (38)
      • Spring Boot (21)
      • React (0)
      • DevOps (8)
    • 트러블슈팅 (15)
    • DevOps (5)
      • Docker (5)
    • ETC (2)

블로그 메뉴

  • 홈
  • 태그
  • 방명록
  • github

공지사항

  • 블로그 이전

인기 글

태그

  • docker workflow
  • 인프런
  • Session
  • cookie
  • docker best practices
  • aws lambda
  • spring security
  • s-lock
  • 오블완
  • 프로그래머스
  • JPA
  • 트랜잭션
  • MVC
  • 김영한
  • 3-layerd 아키텍쳐 패턴
  • jwt
  • Java
  • 구현
  • Spring
  • spring boot
  • x-lock
  • CORS
  • currency control
  • multi-stage
  • CSRF
  • basicerrorcontroller
  • docker
  • S3
  • 백준
  • 티스토리챌린지

최근 댓글

최근 글

hELLO · Designed By 정상우.v4.3.0
hapBday
git pull이 안되는 문제: rebase로 해결하기
상단으로

티스토리툴바

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.