Skip to content

Instantly share code, notes, and snippets.

@mahdi13
Created July 10, 2021 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahdi13/c42f51a28fcda5824141f8c1ad8b7cc7 to your computer and use it in GitHub Desktop.
Save mahdi13/c42f51a28fcda5824141f8c1ad8b7cc7 to your computer and use it in GitHub Desktop.
git command line insight
#!/usr/bin/env bash
(git log --reverse --pretty='format:%C(auto)%h (%s, %ad)' | head -3 ) && echo "..." && git --no-pager shortlog -s -n --all --no-merges && echo "..." && (git log --reverse --pretty='format:%C(auto)%h (%s, %ad)' | tail -3 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment