Skip to content

git cheat sheet

Alistair Adcroft edited this page Oct 20, 2022 · 1 revision

Can't remember which is your latest branch? This lists your local branch with date of last commit:

git for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
Clone this wiki locally