diff --git "a/_posts/2022-11-22-linux\347\265\202\347\253\257\345\237\272\347\241\200\345\221\275\344\273\244.md" "b/_posts/2022-11-22-linux\347\265\202\347\253\257\345\237\272\347\241\200\345\221\275\344\273\244.md" index 16271bd..bb82657 100644 --- "a/_posts/2022-11-22-linux\347\265\202\347\253\257\345\237\272\347\241\200\345\221\275\344\273\244.md" +++ "b/_posts/2022-11-22-linux\347\265\202\347\253\257\345\237\272\347\241\200\345\221\275\344\273\244.md" @@ -20,6 +20,7 @@ time: '2022.11.22 19:27:00' # 二、git - 批量删除分支:git branch | grep "add_*"|xargs git branch -D +- 统计代码贡献:git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --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 # 三、vim - 向下查找关键词并高亮显示:shift + *