title: Git Alias - Multiple Commands and Parameters
body: <p>I am trying to create an alias that uses both multiple Git commands and positional parameters. There are Stackoverflow pages for each, and it would appear painfully obvious to do both, but I am having trouble.</p>
  
  <p>As an example, I want to switch to branch foo and perform a status.  So in my <code>.gitconfig</code>, I have:</p>
  
  <pre><code>  [alias] 
       chs = !sh -c 'git checkout $0 &amp;&amp; git status'
  </code></pre>
  
  <p>which doesn't work.  Whereas something like this will work.</p>
  
  <pre><code>chs = !sh -c 'git checkout $0'
  
  echoes = !sh -c 'echo hi &amp;&amp; echo bye'
  </code></pre>
  
  <p>Any insight would be appreciated.</p>