title: Git workflow for sudden high priority task
body: <p>I am working on a feature branch with a mixture of staged and unstaged changes. A high priority task comes in. What should I do?</p>
  
  <p>It appears <code>git checkout</code> does not touch staged and unstaged changes. So should I:</p>
  
  <pre><code>git add -A
  git commit -am "must stop working to fix bug!"
  git checkout master
  git checkout -b "bug_branch"
  </code></pre>