title: Git: how to use stash -p to stash specific files?
body: <p>I'm trying to figure out how to stash two specific files among many uncommitted changes.  </p>
  
  <p>This very promising answer, <a href="https://stackoverflow.com/questions/3040833/how-to-stash-only-one-file-out-of-multiple-files-that-have-changed#17969785">Stash only one file out of multiple files that have changed with Git?</a>, doesn't show the usage and I'm having trouble working it out.  </p>
  
  <p>The following doesn't work and the man page isn't very helpful (it appears to talk about terminal output, not actually stashing).  I want to stash <code>application.conf</code> and <code>plugins.sbt</code> and then commit everything else.  </p>
  
  <pre><code>app (master)$ git status
  On branch master
  Your branch is ahead of 'origin/master' by 29 commits.
    (use "git push" to publish your local commits)
  
  Changes to be committed:
    (use "git reset HEAD &lt;file&gt;..." to unstage)
  
          modified:   views/mobile/blog.scala.html
          modified:   views/mobile/slideshow.scala.html
          modified:   ../public/css/mobile/styles.css
  
  Unmerged paths:
    (use "git reset HEAD &lt;file&gt;..." to unstage)
    (use "git add &lt;file&gt;..." to mark resolution)
  
          both modified:   ../conf/application.conf
  
  Changes not staged for commit:
    (use "git add &lt;file&gt;..." to update what will be committed)
    (use "git checkout -- &lt;file&gt;..." to discard changes in working directory)
  
          modified:   ../project/plugins.sbt
  
  app (master)$ git stash -p ../conf/application.conf ../project/plugins.sbt 
  
  usage: git stash list [&lt;options&gt;]
     or: git stash show [&lt;stash&gt;]
     or: git stash drop [-q|--quiet] [&lt;stash&gt;]
     or: git stash ( pop | apply ) [--index] [-q|--quiet] [&lt;stash&gt;]
     or: git stash branch &lt;branchname&gt; [&lt;stash&gt;]
     or: git stash [save [--patch] [-k|--[no-]keep-index] [-q|--quiet]
                         [-u|--include-untracked] [-a|--all] [&lt;message&gt;]]
     or: git stash clear
  </code></pre>