esy9vq
Last Updated: August 15, 2018
·
5
· webfacer

If git clone repository-url . want work because directory isn´t empty

When git clone can´t clone into this directory because its not epmty you can use this little snippet, which will clone the repository in own directory and move it then the files into right correct directory and after that the directory will be deleted
Snippet
git clone repository-url tmp && mv tmp/.git . && rm -rf tmp && git reset --hard