Cheat?

git commit -m 'Daily commit' | head -n 1

On Wed, May 15, 2013 at 5:26 PM, Dale R. Worley <wor...@alum.mit.edu> wrote:
> If I run "git commit", Git will output a lot of detailed information
> about the commit:
>
> $ git commit -m 'Daily update.'
> [master bb56ea6] Daily update.
>  1477 files changed, 183898 insertions(+), 8 deletions(-)
>  rewrite GTD/Email.ods (72%)
>  create mode 120000 [etc.]
> $
>
> If I run "git commit -q", Git will output nothing:
>
> $ git commit -m 'Daily update.'
> $
>
> Is there an option to get "git commit" to output just the first line,
> giving the commit hash, like this:
>
> $ git commit -m 'Daily update.'
> [master bb56ea6] Daily update.
> $
>
> Dale
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



-- 
This is a test of the Emergency Broadcast System. If this had been an
actual emergency, do you really think we'd stick around to tell you?

Maranatha! <><
John McKown

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to