Skip to content

Instantly share code, notes, and snippets.

@maleghast
Created May 18, 2018 11:54
Show Gist options
  • Save maleghast/94b073e6e82d6e56d5f221212ffa7933 to your computer and use it in GitHub Desktop.
Save maleghast/94b073e6e82d6e56d5f221212ffa7933 to your computer and use it in GitHub Desktop.
Git - Alias for recently committed branches
git config --global alias.recent "for-each-ref --format='%(refname:lstrip=2)' --sort=-committerdate refs/heads/ --count=5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment