git Count number of lines in a git working tree git diff --shortstat `git hash-object -t tree /dev/null` Current branch name git rev-parse --abbrev-ref HEAD Gets current sort hash git rev-parse --short HEAD git rev-parse --verify --short HEAD