How to fix fatal: A git directory for 'path' is found locally in Git | DevErrors