Issue cannot pull from a GIT remote branch 

Mac-mini:java-pj mvohra$ git pull origin master
From https://bitbucket.org/project/java
 * branch            master     -> FETCH_HEAD
fatal: refusing to merge unrelated histories

Use-case

A new bitbucket repository was created for an existing project(local source code). Local git repository was initialized using git init. in the project folder, however, the local files and folder were not added to GIT yet. A remote origin was added. Subsequently, a readme file was added to the remote GIT repository using the web interface. An attempt to pull the remote changes to local using git pull resulted into this error.