步骤
进入项目目录
右键,点击open git bash here
输入代码
根据时间查询每人提交代码量
git log --format='%aN' | sort -u | while read name; do
echo -en "$name\t"
git log --author="$name" --since="2024-07-02" --until="2024-07-30" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -
done