瀏覽代碼

Add git branches alias

Tom McKenzie 11 年之前
父節點
當前提交
6ecb6a876d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .gitconfig

+ 1 - 0
.gitconfig

@@ -31,3 +31,4 @@
 
 [alias]
     fancy-log  = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
+    branches = for-each-ref --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:iso8601) %(color:white)%(objectname:short) %09%(color:yellow)%(refname:short) %09%(color:white)%(upstream:track) %(contents:subject)' refs/heads