This is a memo on how to measure the number of lines in a source code repository. Introduction How to Count Lines of Source Code Count Lines with a Command Count Lines with Tools Conclusion References Introduction While reading source code, I sometimes wonder how many lines the entire repository has…