Show recently changed branches (git)

To show your recent branches using git:

git for-each-ref --count=10 --sort=-committerdate refs/heads/ --format='%(HEAD) %(objectname:short) %(color:green)%(refname:short)%(color:reset) - %(contents:subject) (%(committerdate:relative))'

Example output:

* 14d5da9 parsing3 - Update version and readme (4 weeks ago)
  ae05513 dev - Version 0.4.0 (4 weeks ago)
  6c695f0 parsing1 - Improve underscore handling in ints (4 weeks ago)
  47fece2 parsing2 - Some progress, but pest output is not close enough to AST (5 weeks ago)
  6c5aba2 webui-abandoned - No JIT for now (5 weeks ago)
  7c60c75 site-url - Increase version number (7 months ago)
  be3461c badges - Auto-formatting and fixing (/allowing) clippy warnings (1 year, 3 months ago)
  441d753 namepool - Fix one clippy error that did not show up locally somehow (1 year, 3 months ago)
  86f5184 todos_warns - Move more namepool stuff to separate repo (1 year, 7 months ago)
  6dd62f7 lexer - Resolve merge problems #52 (2 years, 1 month ago)

 

Topics: #coding #bash #git #shell

Recent branches example

Comments

No comments yet

You need to be logged in to comment.