Skip to content

Instantly share code, notes, and snippets.

@gnurag
Created February 10, 2015 10:37
Show Gist options
  • Save gnurag/16da9c217ff1aed864be to your computer and use it in GitHub Desktop.
Save gnurag/16da9c217ff1aed864be to your computer and use it in GitHub Desktop.
git log linux.git
[anurag@zomg linux]$ git log | grep '^commit dead'
commit dead1971d2a57f972af1b0ffeb7896a73434c628
commit deadcb36f49bee9b3010382ffe4fe4f5c439f1c5
commit deadcfc3324410726cd6a663fb4fc46be595abe7
commit dead537dd8a1c9495322c1d6f7c780697f474af0
commit deadff1665491afce124a8ff83f00f784161f660
commit dead28da8e3fb32601d38fb32b7021122e0a3d21
[anurag@zomg linux]$ git show deadc
error: short SHA1 deadc is ambiguous.
error: short SHA1 deadc is ambiguous.
fatal: ambiguous argument 'deadc': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
[anurag@zomg linux]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment