Skip to content

Instantly share code, notes, and snippets.

@nol166
Created May 19, 2023 11:57
Show Gist options
  • Save nol166/2a2fc528474d80eae288d8ba5cef146b to your computer and use it in GitHub Desktop.
Save nol166/2a2fc528474d80eae288d8ba5cef146b to your computer and use it in GitHub Desktop.
git - show rcently checked out branches
gitlb='for k in `git branch | perl -pe s/^..//`; do echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k -- | head -n 1`\\t$k; done | sort -r'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment