clone bare repo and reset HEAD hard.
cd into your directory. git clone --bare "PASTE URL" .git git config --bool core.bare false git reset --hard