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
Written by Ilic Davor
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#