Hongmu Notes

git count

Submit the total number of statistics. This constitutes part of `git-extras`.

100% Browser local processing 0 Data upload

Common examples

Display the total number of commits in the current branch

git count

Display the number of commits and total number of commits for all contributors (counted by author)

git count --all

Tip: curly braces{{…}}It is the parameter that needs to be replaced (path, file name, etc.); the command is only executed in the local terminal, and this site does not save any input.

English original text comparison

Expand English instructions and examples (source tldr-pages)

Print the total number of commits. Part of `git-extras`. More information

Print the total number of commits

git count

Print the number of commits per contributor and the total number of commits

git count --all

command information

command namegit count
PurposeSubmit the total number of statistics. This constitutes part of `git-extras`.
Applicable platforms通用
Number of examples2 Article
Official documentationhttps://github.com/tj/git-extras/blob/main/Commands.md#git-count
Data sourcetldr-pages(CC-BY-4.0)· Community Chinese Translation

FAQ

git count What does the command do?

Submit the total number of statistics. This constitutes part of `git-extras`.

git count How to use it?

Pages listed by scene2Commonly used examples: Each example first explains the purpose, and then gives a complete command that can be directly copied (the parameters that need to be replaced are in the curly brackets).

git count What are the most commonly used operations?

Display the total number of commits in the current branch:git count

What do the curly braces in the command mean?

curly braces{{…}}Indicates that you need to replace it with your own value, such as path and file name; square brackets for parameters with the same name (such as[-C|--directory]) indicates optional writing.