LoginSignup
0
0

More than 5 years have passed since last update.

git > 2つのコミット間のコミット数を確認する > git rev-list --count [コミットのハッシュ値] x 2回 | 数値の差分を取る

Last updated at Posted at 2017-09-27
動作環境
Windows 7 Pro (32bit)
SmartGit Version 17.0.4 #10132

参考 https://stackoverflow.com/questions/677436/how-to-get-the-git-commit-count

SmartGitの場合

  • Tools > Open Git-Shell
    • Git-Shellを開く
  • 1つ目のコミットのcount確認
    • git rev-list --count b30dce43
    • 91
  • 2つ目のコミットのcount確認
    • git rev-list --count HEAD
    • 139

差分 139 - 91 = 48が今日のコミット。

3割がrefactoringで、3割が些末な変更。残りが主な実装。
粒度は小さすぎるが、手戻りが小さくなるのは良い点。
適切なfeature branchを切ることができれば、このコミット数でも将来の参照性は高くなるが、その点はまだ未消化。

0
0
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
0
0