1. 程式人生 > >如何計算程式碼新增行數

如何計算程式碼新增行數

命令列方法一:

git fetch origin release_1.1(從遠端拉1.1repo

git checkout -b release_1.1 origin/release_1.1(repo到本地)

git diff --shortstat release_1.0 release_1.1 BiuBiu/* Biubiu-IOS比較這個目錄即可)

得到的結果有個新增的行數有個減少的行數(只算增加的行數)

命令列方法二:

git fetch origin release_1.0(從遠端拉1.0repo

git checkout -b release_1.0 origin/release_1.0(

repo到本地)

git fetch origin release_1.1(從遠端拉1.1repo

git checkout -b release_1.1 origin/release_1.1(repo到本地)

git diff --shortstat release_1.0 release_1.1 BiuBiu/* Biubiu-IOS比較這個目錄即可)

得到的結果有個新增的行數有個減少的行數(只算增加的行數)