Check if the current directory is a git repository