[Vm-dev] Re: git mavens, shortcut please?

Paul DeBruicker pdebruic at gmail.com
Sun Jun 19 16:04:28 UTC 2016

git commit -a

will add all the modified files and open an editor where you can write the
commit message. Once the editor exits it git will complete the commit.

git commit -am"Here is my commit message"

will add all modified files to the commit, make the commit message 'Here is
my commit message' and then commit.

To configure a specific editor (e.g. emacs, vim,  textmate) that can be used
when writing lengthier commit messages by one time per computer running 

git config --global core.editor "emacsclient"

Eliot Miranda-2 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)
>         platforms/Cross/plugins/IA32ABI/.ia32abicc.c.swp
> What's the one liner to add the modified files and ignore the untracked
> files?
> What's the one-liner to add and commit the modified files and ignore the
> untracked files?
> [hate the word "add" being used to mean "stage".  This thing was written
> by
> a sadist].
> _,,,^..^,,,_
> best, Eliot

View this message in context: http://forum.world.st/git-mavens-shortcut-please-tp4901724p4901809.html
Sent from the Squeak VM mailing list archive at Nabble.com.

More information about the Vm-dev mailing list