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

前端 未结 8 497
傲寒
傲寒 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:06

    git checkout master
    git merge origin/master --allow-unrelated-histories
    

    Resolve conflict, then

    git add -A .
    git commit -m "Upload"
    git push
    

提交回复
热议问题