2017-04-19 14 views
3

最後にすべてのブランチをログに記録する方法は?最後にすべてのブランチをログに記録する方法は?

今日のログは非常に優れています。

私はgit branch -vを知っています。sha1を表示し、各ヘッドに件名をコミットします。

私はcommit sha1を参照していますが、コミットの時間は覚えていません。

+0

http://stackoverflow.com/a/30076212/14955 – Thilo

+1

[gitで各ブランチとその最終リビジョンの日付をリストする]の可能な複製(http://stackoverflow.com/questions/2514172/listing-each-branch) -and-its-last-revisions-date-in-git) – Thilo

答えて

0

ここでは、スクリプトの作成方法の例を示します。あなたが好きなフォーマットオプションと

git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' 
0
git log --branches --no-walk --date=relative 

、多分--format=%cd %d %s

関連する問題