| 常用排序 | --sort=-committerdate(按提交时间倒序) |
|---|---|
| 组合 | -v/-vv 附带提交信息与跟踪状态 |
| 扩展 | for-each-ref --format 自定义输出 |
常用示例
常用示例
git branch --sort=-committerdate
git branch -vv --sort=-committerdate | head
git branch -r --sort=-committerdate | head把「按提交日期排序」列入每周巡检,能直观看到需要收尾或被遗弃的分支。