Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

按提交者统计git仓库的代码行数,支持忽略文件及文件夹

Notifications You must be signed in to change notification settings

liqt91/countGitCode

Repository files navigation

countGitCode

按提交者统计git仓库的代码行数,支持忽略文件及文件夹

本质上是git log这个命令,但是看文档该命令只支持文件夹/文件白名单。所以仿照.gitignore文件的形式建立黑名单,将不需要统计的文件或者文件夹填入.gitlogignore文件中即可。

附.gitlogignore文件格式

#*为通配符

#项目根目录下的文件夹,不需要/开头,需要/结尾

.git/

.idea/

__pycache__/

logs/

static/

#非项目根目录下的文件夹,需要/开头,需要/结尾

/database*/

#项目根目录下的文件,不需要/开头,不需要/结尾

test.py

.gitignore

.gitlogignore

.DS_Store

.python-version

#非项目根目录下的文件,需要/开头,不需要/结尾

/bootstrap.css

#特定后缀的文件,不需要/开头,不需要/结尾

*.js

*.sql

About

按提交者统计git仓库的代码行数,支持忽略文件及文件夹

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /