私の履歴を簡単または詳細に表示するには、どのgit logコマンドを使用できますか?

私の履歴を簡単または詳細に表示するには、どのgit logコマンドを使用できますか?

標準git logコマンドには時々必要なものよりも詳細がありますが、実際の変更など、実際に必要なものはありません。

より良いサマリーと詳細ビューを取得するには何を使用できますか?

答え1

役に立つと思われるgit logの変更を表示するために、次のエイリアスを設定しました。

alias gl='git log'                 # Standard.  Quick to type.
alias gl1='git log --oneline'      # Nice oneline version
alias glf='git log --name-status'  # Lists out the files that were add/changed 
alias glp='git log -p'             # Shows the actual code changes

はい

$ gl
commit 4d56a61b6898e54a0789233b80ca7d9e22840bd5
Author: Michael Durrant <[email protected]>
Date:   Sat Mar 25 12:11:39 2017 -0400

LYNX-4822 Finish Page Object breakout

commit 812248b4878e905e918a6fc9ac29b35a19b1748f
Author: Michael Durrant <[email protected]>
Date:   Sat Mar 25 12:11:39 2017 -0400

LYNX-4822 Finish Page Object breakout

$ gl1
4d56a61 LYNX-4822 Finish Page Object breakout
812248b LYNX-4822 Finish Page Object breakout
5010291 Fix incorrectly named file
5126c41 LYNX-4933 Updated Nokogiri to 1.7.1 (#4041)

$ glf
commit 4d56a61b6898e54a0789233b80ca7d9e22840bd5
Author: Michael Currant <[email protected]>
Date:   Sat Mar 25 12:11:39 2017 -0400

    LYNX-4822 Finish Page Object breakout

M       spec/features/snap_engage_spec.rb

commit 812248b4878e905e918a6fc9ac29b35999999999
Author: Michael Currant <[email protected]>
Date:   Sat Mar 25 12:11:39 2017 -0400

    LYNX-4822 Finish Page Object breakout

M       spec/features/admin/blog_spec.rb
M       spec/features/landings/blue_car_2fields_min_foundation_mobile_landing_spec.rb
M       spec/features/prepop/prepop_3smf_spec.rb
M       spec/features/prepop/prepop_fullform_mobile_foundation_spec.rb
M       spec/features/survey_spec.rb
D       spec/support/feature_helpers/page_object.yml
M       spec/support/feature_helpers/page_object_3smf.yml
A       spec/support/feature_helpers/page_object_blog.yml
A       spec/support/feature_helpers/page_object_landing.yml
A       spec/support/feature_helpers/page_object_prepop.yml
A       spec/support/feature_helpers/page_object_shared_by_most_flows.yml
A       spec/support/feature_helpers/page_object_snap_engage.yml
A       spec/support/feature_helpers/page_object_survey.yml
M       spec/support/page_object.rb
$ glp
commit 4d56a61b6898e54a0789233b80ca7d9e22840bd5
Author: Michael Durrant <[email protected]>
Date:   Sat Mar 25 12:11:39 2017 -0400

    LYNX-4822 Finish Page Object breakout

diff --git a/spec/features/snap_engage_spec.rb b/spec/features/snap_engage_spec.rb
index 88cd5bd..e3fb924 100644
--- a/spec/features/snap_engage_spec.rb
+++ b/spec/features/snap_engage_spec.rb
@@ -6,6 +6,7 @@ RSpec.feature 'SnapEnagage' do
   let(:p) { PageObject.new }

   before :each do
+    p.snap_engage
     setup_everquote
     create_setting('enable_snap_engage').and_assign_to(config_group, config_group_setting_value: 'true')
   end

関連情報