2016-09-04 7 views
0

フルハッシュのリストを取得するにはどうすればよいですか?圧縮されたハッシュではなく、完全なgitハッシュを表示します。

git reflog 

私はドキュメントでそれを見つけることができませんでした。

5826591 [email protected]{0}: commit : Forgot password 
c8a98d1 [email protected]{1}: commit : cleaned 
02338ed [email protected]{2}: commit : forward to login page 
528bec8 [email protected]{3}: commit : password changed 

答えて

3

だけで実行します。

> git reflog --no-abbrev 
+0

は、その1つの知らなかった - – Craig

+0

はるかに良いをありがとう。それがなぜドキュメントにないのか不思議だ....... – maan81

+1

@ maan81:それはドキュメント内にあり、 'git log'のドキュメントに巧みに隠されています。秘密は、 'git reflog'が' git log -g'(別名 'git log --walk-reflogs')を呼び出してreflogエントリをリストすることです。そのため、完全なオプションリストは' git log'ドキュメントにあります。 – torek

0

git refloggit logと同じformatオプションを受け入れることができます。

ですから、これを使用することができます...あなたはあなたにこのような出力を得る

git reflog show --format='%C(auto)%H %<|(17)%gd: commit : %s' 

f2801fa5ea4a28b573ce14d6ca8502a9dd8dc7a1 [email protected]{39}: commit : Initial commit 
7de68d559ccf7a3435af9ddaa432c81cb59a20fc [email protected]{40}: commit : Add Update packages playbook for simplicity 
f63b2757f2b19188d89fe7bb0f76c56ebee3634f [email protected]{41}: commit : Preliminary structure 
関連する問題