Someone created an empty GitHub
repo for me and added a README.md file in it. In the meantime I started working on my project.
Now I want to start pushing on this repo so I did git init
followed by git remote add origin https://github.com/whatever/my_project.git
.
But then when I do git pull origin master
to get sync with the repo and start pushing to it, I get this error message:
* branch master -> FETCH_HEAD
fatal: refusing to merge unrelated histories
Why and how to solve this problem?