I\'m learning git, and I\'m following the Git community book.
Previously (long time ago) I made a public repository on Github, with some files. Now I set up a local
On your branch - say master, pull and allow unrelated histories
git pull origin master --allow-unrelated-histories
Worked for me.