-
create a new repository in Github, don't add a readme or anything.
-
clone it on your computer
-
add the original repository (the one you want to fork) as upstream source.
git remote add upstream [url]
-
fetch and merge upstream.
git fetch upstream & git merge upstream/master
Thanks to Mark Marijnissen