What\'s a shell command I can use to, using the full directory path, determine whether or not a given directory is a git repository? Specifically, I\'d like to be able to do thi
We can also try git status command and if the output is like :
git status
fatal: Not a git repository (or any of the parent directories): .git
Then, the directory is not a git repository.