Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 650 Bytes

README.md

File metadata and controls

18 lines (10 loc) · 650 Bytes

git-last 🤔

Are you tired of going over merged PRs just to find the last branch you were working on?
Fear not - we got you covered!

By adding the following alias to your terminal, you'll be able to view the last 10 branches that you checked-out to:

alias git-last="git for-each-ref --sort=-committerdate refs/heads/ --count=10 --format='%(refname:short)'"

Then it's as easy as it gets:

image

Note this depends on the directory you're in - it'll show the relevant branches per repository.