git log
[git ls-files](https://texonom.com/git-ls-files-685de3844d214eecb0ac190a81235755) 


### search in change
```typegit log -p | grep blabla```


### user
```typegit log --pretty="%ce%n" | sort | uniq```

### total contribution
```typegit log --author=$USER --shortstat $BRANCH | \awk '/^ [0-9]/ { f += $1; i += $4; d += $6 } \END { printf("%d files changed, %d insertions(+), %d deletions(-)", f, i, d) }'```

### user contribution
```type# Loop through usersfor user in $(git log --pretty="%ce%n" | sort | uniq);do   # print user email   echo "$user"   # print total files changed, total insertions, total deletions   echo $(git log --author="${user}" --shortstat 'feature/#3236-facility-hover' | awk '/^ [0-9]/ { f += $1; i += $4; d += $6 } END { printf("%d files changed, %d insertions(+), %d deletions(-)", f, i, d) }')done```

> [How to calculate the percentage of contribution from each contributor to words the Code in the Git or Gerrit?](https://stackoverflow.com/questions/54285539/how-to-calculate-the-percentage-of-contribution-from-each-contributor-to-words-t)






