For me the problem occured when I tried this:
git merge -s ours --no-commit --allow-unrelated-histories <remote name>/develop
So actually I should have written master
instead of develop
,because master was the branch name of Subtree,not my actual branch.