728x90
반응형
서로 결합되지 않은 Git Push, Pull 시도 시 아래와 같은 에러 발생
fatal: refusing to merge unrelated histories
해결
git pull origin master --allow-unrelated-histories
--allow-unrelated-histories
명령옵션 사용하여 강제로 pull을 한다.
참고글
Git push가 안되는 경우 (fatal: refusing to merge unrelated histories)
로컬 저장소에 있는 프로젝트를 깃허브 사이트를 통해 만든 저장소로 push 하는 경우에 이런 메세지가 뜨는 경우가 있다. 1 2 3 4 5 6 7 8 C:\Users\gitProject>git push origin master To https://github.co..
gdtbgl93.tistory.com
728x90
반응형
'Git' 카테고리의 다른 글
[Git] 특정 파일 되돌리기 (git checkout) (0) | 2022.06.10 |
---|---|
[Git] fork repository 최신 버전으로 유지하기 (0) | 2021.03.22 |
[Git] git GUI SourceTree 터미널에서 열기 (0) | 2019.02.01 |
[Git] 태그 (tag) (0) | 2019.01.31 |
[Git] pull과 fetch의 차이 (4) | 2019.01.29 |