git count number of changed lines before committing code example Example: git commit number of lines changed git log --shortstat