In my case, the original repository was a bare one.
So, I had to type (in windows):
mkdir dest
cd dest
git init
git remote add origin a\valid\yet\bare\repository
git pull origin master
To check if a repository is a bare one:
git rev-parse --is-bare-repository