title: Git not recognizing alias
body: <p>My <code>.gitconfig</code> file is as follows:</p>
  
  <pre><code>[user]
      name = myname
      email = asdf@xyz.com
  [alias]
      co = commit -am
  </code></pre>
  
  <p>When I'm in Git Bash and I enter:</p>
  
  <pre><code>git co "Macro changes"
  </code></pre>
  
  <p>I get this error message:</p>
  
  <pre><code>git: 'co' is not a git command.
  </code></pre>
  
  <p>Why isn't the alias being recognized?</p>
  
  <p>EDIT: I'm running Windows 7.  The <code>.gitconfig</code> file is at <code>C:\Users\[myuserID]\.gitconfig</code>.</p>
  
  <p>Strangely, I just created another alias:</p>
  
  <pre><code>git config --global alias.st status
  </code></pre>
  
  <p>Then I ran</p>
  
  <pre><code>git st
  </code></pre>
  
  <p>which worked.  But when I opened <code>C:\Users\[myuserID]\.gitconfig</code>, the new alias wasn't listed there.  So maybe the global config file is somewhere else?</p>
  
  <p>In <code>C:\Program Files (x86)\Git\etc\profile</code>, there's this definition of <code>HOME</code>:</p>
  
  <pre><code># Set up USER's home directory
  if [ -z "$HOME" -o ! -d "$HOME" ]; then
    HOME="$HOMEDRIVE$HOMEPATH"
    if [ -z "$HOME" -o ! -d "$HOME" ]; then
      HOME="$USERPROFILE"
    fi
  fi
  </code></pre>
  
  <p>Windows command prompt tells me that <code>%HOMEDRIVE%%HOMEPATH</code> is <code>P:\</code>, and sure enough, the new alias <code>st = status</code> is in a <code>.gitconfig</code> file there, but not <code>co = commit -am</code>, which is odd because when I created the <code>co</code> alias yesterday, I was able to successfully call it.</p>