### create file
sudo nano /usr/local/bin/gitstat
### put this in
#!/usr/bin/env bash
dir=$1
if [[ $dir == "" ]]; then
echo "Directory is required!"
exit
fi
echo "Git stat for '$dir'."
git --git-dir=$dir/.git --work-tree=$dir diff --stat
### give exec perm
sudo chmod +x /usr/local/bin/gitstat