如何計算程式碼新增行數
阿新 • • 發佈:2019-02-17
命令列方法一:
git fetch origin release_1.1(從遠端拉1.1到repo)
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.0到repo)
git checkout -b release_1.0 origin/release_1.0(從
git fetch origin release_1.1(從遠端拉1.1到repo)
git checkout -b release_1.1 origin/release_1.1(從repo到本地)
git diff --shortstat release_1.0 release_1.1 BiuBiu/* (Biubiu-IOS比較這個目錄即可)
得到的結果有個新增的行數有個減少的行數(只算增加的行數)