Skip to content

Commit

Permalink
Update 2022-11-22-linux終端基础命令.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai1991 committed Oct 28, 2023
1 parent 91978df commit 7824158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _posts/2022-11-22-linux終端基础命令.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 + *
Expand Down

0 comments on commit 7824158

Please sign in to comment.