All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server > เกี่ยวกับ docker ทุกอย่าง , ci/cd , gitlab, github

git fatal: refusing to merge unrelated histories

(1/1)

golfreeze:
$ git pull origin master

From https://github.com/mkyong/java-concurrency
 * branch            master     -> FETCH_HEAD
 
fatal: refusing to merge unrelated histories

ทำการแก้ไขโดย

$ git pull origin master --allow-unrelated-histories

From https://github.com/mkyong/java-concurrency
 * branch            master     -> FETCH_HEAD
Merge made by the 'recursive' strategy.
 LICENSE | 674 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 674 insertions(+)
 create mode 100644 LICENSE

แล้วทำการ push ใหม่อีกรอบโดยเริ่มจาก

$git add .
$git commit -m "Add Staging 1"
$got push -u origin master

นำร่อง

[0] ดัชนีข้อความ

Go to full version