两个提交或两个分支之间有多少行代码?

sen*_*rio 32 git

我想知道在两个不同的提交之间我改变了多少行代码.我的目的是了解我今天编写了多少行代码,但我的抽象想法是了解我从一个时刻到另一个代码编写了多少行代码.有人可以帮我这个东西吗?

xda*_*azz 58

--shortstat 是你想要的:

git diff --shortstat commit1 commit2
Run Code Online (Sandbox Code Playgroud)

您也可以使用它:

git diff --shortstat "@{1 day ago}" 
Run Code Online (Sandbox Code Playgroud)