26
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitでいつ誰が作ったブランチなのかを知る方法

Last updated at Posted at 2015-06-17

放置していたレポジトリによく分からないブランチがあったときに、誰がいつ作ったものかが知りたくて色々と調べたら、Find out git branch creatorにその方法が書いてありました。以下のような方法で取得することができます。

コマンド実行:

$ git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n

結果:

Mon Jul 15 15:45:10 2013 +0800 	 Cheng Zhao 	 refs/tags/v0.1.0
Wed Jul 17 10:57:25 2013 +0800 	 Cheng Zhao 	 refs/tags/v0.1.1
Thu Jul 18 18:37:40 2013 +0800 	 Cheng Zhao 	 refs/tags/v0.1.2
Thu Jul 18 19:21:25 2013 +0800 	 Cheng Zhao 	 refs/tags/v0.1.3
Tue Jul 23 11:59:07 2013 +0800 	 Cheng Zhao 	 refs/tags/v0.1.4
Tue Jul 23 15:29:56 2013 +0800 	 Cheng Zhao 	 refs/tags/v0.1.5
Fri Jul 26 16:40:29 2013 +0800 	 Cheng Zhao 	 refs/tags/v0.1.6
Fri Jul 26 19:52:47 2013 +0800 	 Cheng Zhao 	 refs/tags/v0.1.7
Mon Jul 29 20:50:03 2013 +0800 	 Cheng Zhao 	 refs/tags/v0.1.8
...
26
28
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
26
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?