Skip to content

Instantly share code, notes, and snippets.

@mahdi13
Created July 10, 2021 08:33
Show Gist options
  • Select an option

  • Save mahdi13/c42f51a28fcda5824141f8c1ad8b7cc7 to your computer and use it in GitHub Desktop.

Select an option

Save mahdi13/c42f51a28fcda5824141f8c1ad8b7cc7 to your computer and use it in GitHub Desktop.

Revisions

  1. mahdi13 created this gist Jul 10, 2021.
    3 changes: 3 additions & 0 deletions git-insight.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/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 )