Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| git_shortlog [2019/02/28 21:17] – created rpjday | git_shortlog [2019/03/18 12:45] (current) – [Examples] rpjday | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Most useful options for '' | Most useful options for '' | ||
| + | ===== SYNOPSIS ===== | ||
| + | |||
| + | Part of it: | ||
| + | |||
| + | < | ||
| + | git shortlog [< | ||
| + | </ | ||
| ===== (Some) OPTIONS ===== | ===== (Some) OPTIONS ===== | ||
| Line 28: | Line 35: | ||
| Consider only commits that are enough to explain how the | Consider only commits that are enough to explain how the | ||
| files that match the specified paths came to be. | files that match the specified paths came to be. | ||
| + | </ | ||
| + | |||
| + | ===== Examples ===== | ||
| + | |||
| + | Default output: | ||
| + | |||
| + | < | ||
| + | $ git shortlog | ||
| + | 4wk- (1): | ||
| + | 4wk: ajusting the documentation - see #1053 and #1054 | ||
| + | |||
| + | Adam Laflamme (1): | ||
| + | - Fixed a typo in hooks.asc. | ||
| + | |||
| + | Adrien Ollier (42): | ||
| + | removed and ignored Gemfile.lock | ||
| + | added escaped quotation marks for git commit' | ||
| + | added a new section for Git as a client for a Bazaar repository | ||
| + | added a new section to import a Bazaar repository into a Git repository | ||
| + | Modifications done as per Ben's suggestions. | ||
| + | minor modifications | ||
| + | removed trailing spaces | ||
| + | ... snip ... | ||
| + | </ | ||
| + | |||
| + | Sort according to contributions: | ||
| + | |||
| + | < | ||
| + | $ git shortlog -n | ||
| + | Ben Straub (803): | ||
| + | Fix markdown H4's (convert into asciidoc H5's) | ||
| + | Remove trailing spaces | ||
| + | Add remaining headers to outline | ||
| + | GitHub is a chapter | ||
| + | Tweak github chapter | ||
| + | Three trees | ||
| + | Add some things | ||
| + | Feedback | ||
| + | ... snip ... | ||
| + | </ | ||
| + | |||
| + | Just print a summary: | ||
| + | |||
| + | < | ||
| + | $ git shortlog -n -s | ||
| + | | ||
| + | | ||
| + | | ||
| + | 52 Jean-Noël Avila | ||
| + | 50 Cory Donnelly | ||
| + | 42 Adrien Ollier | ||
| + | 24 Kaartic Sivaraam | ||
| + | 20 Yue Lin Ho | ||
| + | 11 Markus KARG | ||
| + | 10 Kyrylo Yatsenko | ||
| + | 10 Sanders Kleinfeld | ||
| + | ... snip ... | ||
| + | </ | ||
| + | |||
| + | Don't count merge commits: | ||
| + | |||
| + | < | ||
| + | $ git shortlog -n -s --no-merges | ||
| + | | ||
| + | | ||
| + | | ||
| + | 52 Jean-Noël Avila | ||
| + | 50 Cory Donnelly | ||
| + | 42 Adrien Ollier | ||
| + | 24 Kaartic Sivaraam | ||
| + | 20 Yue Lin Ho | ||
| + | 11 Markus KARG | ||
| + | 10 Kyrylo Yatsenko | ||
| + | 10 Sanders Kleinfeld | ||
| + | ... snip ... | ||
| + | </ | ||
| + | |||
| + | Restrict to a pathspec: | ||
| + | |||
| + | < | ||
| + | $ git shortlog -n -s --no-merges -- images | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | $ | ||
| </ | </ | ||