title: Check if current directory is a Git repository
body: <p>I am writing a series of scripts for Git management in zsh.</p>
  
  <p>How do I check if the current directory is a Git repository? (When I'm not in a Git repo, I don't want to execute a bunch of commands and get a bunch of <code>fatal: Not a git repository</code> responses).</p>