Recent git branches alias

Have you found yourself jumping between branches & features? well, I did… and sometimes it’s hard to remember on which branch you need to work. so to make it a bit easier, you can set an alias for this git command, that lists all your branches by order of creation.

alias recent-branches='git for-each-ref --sort=creatordate refs/heads/'

Leave a Reply

Your email address will not be published. Required fields are marked *