0

I applied git LFS to my repository. The commands I used were: ( There are no branches in this repository. )

git lfs migrate import --include="*.uasset"
git push --force origin master

There were no errors.

But today, the other one told me the error below popped up when he tried to pull from the repository that I applied the git lfs: ( He also has no branches. )

fatal: refusing to merge unrelated histories

I googled and in many cases, the solution was execute the command below:

git pull origin master --allow-unrelated-histories

or

git push --force origin master

When I applied the git lfs, I already push new local history forcefully to the remote so I think the first answer(=allowing unrelated histories) is what I have to tell him.

Am I getting this right?

Thank you.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.