Files
dotfiles/zsh/.local/share/zsh/functions/git-branches
2025-10-28 18:02:51 +00:00

5 lines
189 B
Plaintext

# list all local Git branches sorted by their last commit date
git-branches() {
git for-each-ref --sort=-committerdate --format='%(committerdate:iso8601) %(refname:short)' refs/heads/
}