Notice
Recent Posts
Recent Comments
Link
«   2024/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
Archives
Today
Total
관리 메뉴

Tason

[Git] Refusing to merge unrelated histories 오류 본문

Open Source/Git

[Git] Refusing to merge unrelated histories 오류

Yan g 2019. 9. 5. 10:43

 

>> git pull origin master

-- fatal: refusing to merge unrelated histories

 

연관되지 않은 Commit history를 Merge 하는 것이 거부되었다.

원격 저장소와 로컬 저장소의 공통된 Commit 시점이 없기 때문에 Merge 및 Pull 할 수 없다.

 

 

 

강제로 pull 한다.
>> git pull origin master --allow-unrelated-histories​

 

[방법2] 로컬 저장소를 다시 설정하고 Clone 명령을 실행한다.
>> git clone 'https://github.com/tason/xxx.git'

 

Comments