Skip to content

Instantly share code, notes, and snippets.

@thaoms
Created November 22, 2019 12:51
Show Gist options
  • Select an option

  • Save thaoms/76e4b902f79c2fc0971db3e27af4c907 to your computer and use it in GitHub Desktop.

Select an option

Save thaoms/76e4b902f79c2fc0971db3e27af4c907 to your computer and use it in GitHub Desktop.
Git Recent Branches alias
git config --global alias.grb 'for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"'
@thaoms
Copy link
Author

thaoms commented Nov 22, 2019

Lets you use git grb to see your 10 latest branches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment