title: Git commit in my case
body: <p>I am on branch "<code>feature</code>". After I did all the changes, I decide to commit my work on this branch. </p>
  
  <p>I first checked all the changes I have made by execute command:</p>
  
  <pre><code>git status
  </code></pre>
  
  <p>The above git command printed out the following result: </p>
  
  <pre><code>On branch feature
  # 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:   MyApp/src/Main.java
  #   modified:   MyApp/src/Model.java
  
  # Untracked files:
  #   (use "git add &lt;file&gt;..." to include in what will be committed)
  #
  #   MyApp/src/other/file1
  #   MyApp/src/other/file2
  </code></pre>
  
  <p>As you see above, there are two <strong>untracked</strong> files <code>file1</code> and <code>file2</code>. I don't want to have them in my git repository at all. But for some reason I forgot these two files &amp; directly committed my changes by:</p>
  
  <pre><code>git add .
  git commit -m "Some changes"
  </code></pre>
  
  <p>At this point, all the changes including <code>file1</code> &amp; <code>file2</code> are commited. Now, how can I rescue myself to <strong>exclude</strong> <code>file1</code> &amp; <code>file2</code> but still keep other modified changes be committed? </p>
  
  <p>(Please don't suggest me to delete <code>file1</code> &amp; <code>file2</code> from disk, I need them on my local disk)</p>