you can use this command in your repository :
```
git log --format='%aN' | Sort-Object -Unique | ForEach-Object {
$name = $_
$addedLines = 0
$removedLines = 0
(git log --author="$name" --pretty=tformat: --numstat) | ForEach-Object {
if ($_ -match '(\d+)\s+(\d+)') {
$addedLines += [int]$matches[1]
$removedLines += [int]$matches[2]
}
}
[PSCustomObject]@{
Author = $name
AddedLines = $addedLines
RemovedLines = $removedLines
TotalLines = $addedLines - $removedLines
}
} | Format-Table -AutoSize
```
you can use this command in your repository :
```
git log --format='%aN' | Sort-Object -Unique | ForEach-Object {
$name = $_
$addedLines = 0
$removedLines = 0
(git log --author="$name" --pretty=tformat: --numstat) | ForEach-Object {
if ($_ -match '(\d+)\s+(\d+)') {
$addedLines += [int]$matches[1]
$removedLines += [int]$matches[2]
}
}
[PSCustomObject]@{
Author = $name
AddedLines = $addedLines
RemovedLines = $removedLines
TotalLines = $addedLines - $removedLines
}
} | Format-Table -AutoSize