Trying to pull files from my Github repository: “refusing to merge unrelated histories”

前端 未结 8 511
傲寒
傲寒 2020-12-04 05:34

I\'m learning git, and I\'m following the Git community book.

Previously (long time ago) I made a public repository on Github, with some files. Now I set up a local

8条回答
  •  佛祖请我去吃肉
    2020-12-04 06:21

    On your branch - say master, pull and allow unrelated histories

    git pull origin master --allow-unrelated-histories
    

    Worked for me.

提交回复
热议问题