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
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#