<div dir="ltr">Hi All,<div><br></div><div>    I find myself in this situation a lot:</div><div><br></div><div><div>Changes not staged for commit:</div><div>  (use &quot;git add &lt;file&gt;...&quot; to update what will be committed)</div><div>  (use &quot;git checkout -- &lt;file&gt;...&quot; to discard changes in working directory)</div><div><br></div><div>        modified:   platforms/Cross/plugins/IA32ABI/ia32abi.h</div><div>        modified:   platforms/Cross/plugins/IA32ABI/x64ia32abicc.c</div><div>        modified:   platforms/Cross/plugins/IA32ABI/xabicc.c</div><div><br></div><div>Untracked files:</div><div>  (use &quot;git add &lt;file&gt;...&quot; to include in what will be committed)</div><div><br></div><div>        platforms/Cross/plugins/IA32ABI/.ia32abicc.c.swp</div><div><br></div><div>What&#39;s the one liner to add the modified files and ignore the untracked files?</div><div>What&#39;s the one-liner to add and commit the modified files and ignore the untracked files?</div><div><br></div><div>[hate the word &quot;add&quot; being used to mean &quot;stage&quot;.  This thing was written by a sadist].</div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>