fatal: refusing to merge unrelated histories after adding git remote

后端 未结 1 1139
挽巷
挽巷 2021-02-02 16:01

I\'ve added a remote repository to the folder where I am working with :

git remote add origin https://github.com//.git
相关标签:
1条回答
  • 2021-02-02 16:43

    You need to either reset or commit your changes first:

    git reset --hard
    

    or:

    git commit -m "saving changes..."
    

    Then you can do:

    git pull origin master --allow-unrelated-histories
    
    0 讨论(0)
提交回复
热议问题