Git/工具

来自康健生活
< Git
Kangkk​(留言 | 贡献)2024年2月29日 (四) 11:07的版本 (创建页面,内容为“== 工具 == === git_stats === === cloc === {{shc|<syntaxhighlight lang="bash"> brew install cloc </syntaxhighlight>|jian:kang kangjian$}} 使用。 {{Shc_out|<syntaxhighlight lang="bash"> cloc ./</syntaxhighlight>|<syntaxhighlight lang="bash"> 378 text files. 345 unique files. 50 files ignored. github.com/AlDanial/cloc v 1.92 T=0.62 s (555.8 files/s, 110143.4 lines/s) ---------------------------------------------------------------------------…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

工具

git_stats

cloc

 
brew install cloc

使用。

[jian@kang /home/kangkk]$
cloc ./
     378 text files.
     345 unique files.
      50 files ignored.

github.com/AlDanial/cloc v 1.92  T=0.62 s (555.8 files/s, 110143.4 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JSON                            11              2              0          37638
JavaScript                     190           1697           2924          16433
CSS                             31            247            106           3148
LESS                            42            164            139           2875
SVG                             31              7              9           1059
TypeScript                      24            121            186            850
Markdown                         7             72              0            243
YAML                             1             22             31            160
HTML                             2              2             11            124
XML                              1              0              0             42
Dockerfile                       5             13              0             39
-------------------------------------------------------------------------------
SUM:                           345           2347           3406          62611
-------------------------------------------------------------------------------

git-lfs

使用 git-lfs 管理大文件。