I set a new url to previously used origin in our server as
git remote set-url origin [new_url]
Now there's an error when I'm trying to pull
git pull origin dev
fatal: refusing to merge unrelated histories
I set the new url beacuse i don't want to create a new origin for doing stuff. How can I solve this?
Edit :-
When added the git pull origin dev --allow-unrelated-histories an error comes up again. and some untrack files are shown
error: The following untracked working tree files would be overwritten by merge:
I want to overwritten the files