Skip to content

seanbfuller/git-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Git Commands

Yearly counts

Get a count of commits for this year

git rev-list --count --all --since="Jan 1 2017" --before="Dec 31 2017"

Get a count files and lines changed

git log --shortstat --since="Jan 1 2017" --before="Dec 31 2017" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "\nfiles changed:", files, "\nlines inserted:", inserted, "\nlines deleted:", deleted}'

About

A collection of handy git commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published