Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git commit id 7 characters

what about this :
git log --pretty="%h %cD %cn %s"  

it shows someting like :
674cd0d Wed, 20 Nov 2019 12:15:38 +0000 Bob commit message

see the pretty format documentation
https://git-scm.com/docs/pretty-formats
 
PREVIOUS NEXT
Tagged: #git #commit #id #characters
ADD COMMENT
Topic
Name
3+7 =