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
Adding to @Walk's comments,
git status will throw fatal message if its not a repo.
echo $? will help to capture of its an ERROR or not.
If its a git repo then echo $? will be 0 else 128 will be the value