[Vm-dev] git mavens, shortcut please?
btc at openinworld.com
Sun Jun 19 05:22:50 UTC 2016
On Sun, Jun 19, 2016 at 7:58 AM, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> Hi All,
> I find myself in this situation a lot:
> Changes not staged for commit:
> (use "git add <file>..." to update what will be committed)
> (use "git checkout -- <file>..." to discard changes in working directory)
> modified: platforms/Cross/plugins/IA32ABI/ia32abi.h
> modified: platforms/Cross/plugins/IA32ABI/x64ia32abicc.c
> modified: platforms/Cross/plugins/IA32ABI/xabicc.c
> Untracked files:
> (use "git add <file>..." to include in what will be committed)
> What's the one liner to add the modified files and ignore the untracked files?
git stage -u (i.e. git stage --update)
> What's the one-liner to add and commit the modified files and ignore the untracked files?
git commit -a
> [hate the word "add" being used to mean "stage". This thing was written by a sadist].
> best, Eliot
More information about the Vm-dev