Git: show total file size difference between two commits?

后端 未结 5 479
心在旅途
心在旅途 2020-12-04 08:05

Is it possible to show the total file size difference between two commits? Something like:

$ git file-size-diff 7f3219 bad418 # I wish this worked :)
-1234 b         


        
5条回答
  •  一个人的身影
    2020-12-04 08:44

    You can pipe the out put of

    git show some-ref:some-path-to-file | wc -c
    git show some-other-ref:some-path-to-file | wc -c
    

    and compare the 2 numbers.

提交回复
热议问题