Skip to content

Commit

Permalink
utils: git
Browse files Browse the repository at this point in the history
Signed-off-by: Luc Ma <[email protected]>
  • Loading branch information
lucmann committed Sep 19, 2024
1 parent b0564f8 commit b62a6fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/_posts/utils/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ categories: utilities
- `git log --oneline --grep "fix:"`
- tig 类似的参数是 `--grep="fix:"`

# git shortlog
- `git shortlog -sne --author="Name Surname"
- 统计某个贡献者的提交,像这样:`17 Luc Ma <[email protected]>`

# git remote
- `git remote prune <remote>`
- 将给定的 `<remote>` 远端不存在的**本地分支**全部删除(注意: rm -rf 警告,最好先 `git remote prune --dry-run <remote>`)
Expand Down

0 comments on commit b62a6fc

Please sign in to comment.