git ls-files
[grep](https://texonom.com/grep-a773cdd0924e4d87a57d7bf96d5cf97f) [wc](https://texonom.com/wc-389d9475d03c4ce59b3795c2d7fe78d4) [xargs](https://texonom.com/xargs-45c5a870edd04780a1d5ad9518a8657d) [git log](https://texonom.com/git-log-7ba3074a584c40a1bcf961b5e92fed6a) 


### total lines
```typegit ls-files | xargs cat | wc -l```

### file lines - current directory nested
```typegit ls-files -z | xargs -0 wc -l```

### specific file lines
```typegit ls-files | grep -P ".*(js|vue)$" | xargs wc -lgit ls-files | grep -P ".*(cc|hh|js|vue)$" | xargs wc -lgit ls-files | grep -P "src.*(js|vue)$" | xargs wc -lgit ls-files | grep -P "src.*(js|vue)$" | xargs wc -l | grep total```


### staged contents' mode bits, object name and stage number in the output
```typegit ls-files --stage```






