Skip to content

Instantly share code, notes, and snippets.

@joshjm
Created February 6, 2023 01:58
Show Gist options
  • Save joshjm/f28a22b8e7e704b084f97088e1438acf to your computer and use it in GitHub Desktop.
Save joshjm/f28a22b8e7e704b084f97088e1438acf to your computer and use it in GitHub Desktop.
a helpful command to see what your last 10 branch names are that you have checked out
git config --global alias.recent 'for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment