git骚皮操作

diffCount =$(git rev-list "${commitId2}".."${commitId1}" --count)
获取两个commit 距离 最近的放后面
commitId1=$(git rev-parse --short HEAD)
获取最近一次commitID
git rev-parse --short HEAD
git rev-parse HEAD

posted @ 2023-04-27 01:09  c-若曦  阅读(49)  评论(0)    收藏  举报