How would I count the total number of lines present in all the files in a git repository?
(我如何计算git存储库中所有文件中存在的总行数?)
git ls-files
gives me a list of files tracked by git.
(git ls-files
为我提供了git跟踪的文件列表。)
I'm looking for a command to cat
all those files.
(我正在寻找一个命令来cat
所有这些文件。)
(就像是)
git ls-files | [cat all these files] | wc -l
ask by Dogbert translate from so