During git rebase origin/development
the following error message is shown from Git:
fatal: refusing to merge unrelated histories
Error redoing m
Firstly pull the remote changes to your local using the following command:
git pull origin branchname --allow-unrelated-histories
** branchname is master in my case.
When the pull command done, conflict occurs. You should solve the conflicts. I use Android Studio to solve conflicts.
When conflicts solved, merge is done!
Now you can safely push.