Git/log: Difference between revisions
No edit summary |
No edit summary |
||
| Line 288: | Line 288: | ||
<code>git log 39.5.0..HEAD --pretty=format:"%s" --no-merges | awk '{print tolower($1)}' | sort | uniq -c</code> | <code>git log 39.5.0..HEAD --pretty=format:"%s" --no-merges | awk '{print tolower($1)}' | sort | uniq -c</code> | ||
or for bigger repos, limit the lookback, and sort things numerically in reverse order, showing the top 20 | |||
<code>git log --since "2 years ago" --pretty=format:"%s" --no-merges | awk '{print tolower($1)}' | sort | uniq -c | sort -nr | head -20</code> | |||
[[Category:Best Practices]] | [[Category:Best Practices]] | ||