During git rebase origin/development the following error message is shown from Git:
git rebase origin/development
fatal: refusing to merge unrelated histories Error redoing m
For Android Studio and IntelliJ:
First, commit everything and resolve any conflicts.
Then open the terminal from below of IDE and enter:
git pull origin master --allow-unrelated-histories
Now you can push.