Unable to use git

I am trying to pull from a remote to a folder in my repo. Using:

git subtree pull --prefix my-local/folder my-remote master

I get the following error:

fatal: refusing to merge unrelated histories

I read in another post that I can use the --allow-unrelated-histories option, but when I do this, I get error: unknown option --allow-unrelated-histories (I put the option last)

I am using git version 2.10.1 and Windows 10

Any help or ideas on how to move forward with this is greatly appreciated!

+5
source share
1 answer

Try sudo add-apt-repository ppa:git-core/ppa && sudo apt-get update then use --allow-unrelated-histories

-1
source

Source: https://habr.com/ru/post/1258948/


All Articles