Solution for : fatal: destination path ‘.’ already exists and is not an empty directory in git

Solution for :fatal: destination path ‘.’ already exists and is not an empty directory in GIT

This error message will show on terminal when you do multiple times of fresh git clone setup on your system. This issue is coming because of some hidden (cached files) GIT files. Use below command to remove those hidden GIT files & folder.

Note: This command will delete your files from your path. Recommended TO USE during first time clone. After done the setup, don’t use this command. It will delete all files from your folder

>rm -rf .* && git clone

Now you try to do run git clone it will work with out any issue.

Note: Suggested to use this command when you do fresh setup (Git clone).

தனித்திரு!!! விழித்திரு !!!

Stay Seclude!!! Stay awake!!!

Leave a Reply