살다보니개발자

  • 홈
  • 태그
  • 방명록

Git 2

fatal: refusing to merge unrelated histories

git pull을 했는데 fatal: refusing to merge unrelated histories 라는 메시지가 뜨고 git push가 되지 않는다 . 해결방법은 git pull origin 브런치명 --allow-unrelated-histories 한후 다시 commit 후에 push를 해주면 된다. --allow-unrelated-histories 는 존재하는 공통점이 없는 두개의 프로젝트를 병합하는 드문 상황에 사용된다고 한다. git에서는 서로 관련없는 history를 가지고있는 두 프로젝트를 병합할 때 기본적으로 거부하는데, 이것을 허용해 주는 명령어 라고 생각하면 된다.

Git 2022.09.18

remote: error: GH006: Protected branch update failed for refs/heads/master.remote: error: Cannot force-push to this protected branch( 보호브랜치 push가 안될때)

push 했는데remote: error: GH006: Protected branch update failed for refs/heads/master.remote: error: Cannot force-push to this protected branch라고 나올때, 해당 브랜치의 Settings -> Branches 에 Branch protection rules 에 있는 룰을 Delete 눌러 삭제 해주면 된다.

Git 2022.08.28
이전
1
다음
더보기
프로필사진

주니어 프론트엔드 개발자의 성장 기록

  • 분류 전체보기 (47)
    • 프로그래밍 (3)
    • React-Native (12)
    • React (5)
    • Javascript (3)
    • Typescript (1)
    • 자료구조 (0)
    • 알고리즘 (19)
    • Git (2)
    • NextJS (2)

Tag

IOS, 코테, 자료구조, ReactNative, error, 자바스크립트, xcode, stack, javascript, 리액트네이티브, 백준, 리액트, 프로그래머스, 코딩테스트, 큐, 알고리즘, 코딩, react, 정렬, 스택,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바