+
Skip to content

gbyrka/git-log-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Latest contributor activity

git log -4 --author="Grzegorz Byrka"

Branch history presented in the graphic way

git log --graph --oneline --decorate

The history of merges and the history without merges

git log --no-merges
git log --merges 

First commits to the repository

git log --reverse

Most active contributors

git shortlog -sen --no-merges 
git shortlog -sn --no-merges 

git shortlog -sn --no-merges --after="2019-1-1"
git shortlog -sn --no-merges --before="2019-1-1" --after="2018-1-1"

Date range of the contributor activity

git log --pretty=format:"%ad%" --author="Grzegorz Byrka" --reverse | head -n 3
git log --pretty=format:"%ad%" --author="Grzegorz Byrka" | head -n 3

Files edited most often

git log --name-only --pretty=format: | sort | uniq -c | sort -nr | head -n 20
git log --before="2019-1-1" --after="2018-1-1" --name-only --pretty=format: | sort | uniq -c | sort -nr | head -n 20
git log --author="Grzegorz Byrka" --name-only --pretty=format: | sort | uniq -c | sort -nr | head -n 20

Basic project info

phploc

or http://cloc.sourceforge.net/

Exact date checkout (a.k.a. Time travel)

git checkout 'master@{2019-01-01 00:00:01}'

This method uses the reflog to find the commit in your history. By default these entries expire after 90 days. Although the syntax for using the reflog is less verbose you can only go back 90 days.

git checkout `git rev-list -n 1 --first-parent --before="2019-01-01 00:01" master`

Git Static Analyzer

Some of the above is automated here: https://github.com/gbyrka/git-static-analyzer

About

Set of most practical commands to learn everything about a project

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载