When I try to pull or push to my GIT repo in AWS CodeCommit I get the pop-up message saying "Error Merging - refusing to merge unrelated histories". Both "git pull" and "git push" work fine from the command line and I've confirmed that the command line git is using the same executable that Intellij uses (/usr/bin/git). I've tried "git pull --allow-unrelated-histories" from the command line to see if that fixes the Intellij GIT plugin but still the same error pops up. I've tried git cloning the project to another folder and restart Intellij with invalidate caches but I get the same issue. Any ideas?