網站首頁 編程語言 正文
git統計當前項目代碼行數
在項目根目錄輸入以下代碼
git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --numstat --after="2021-04-01 00:00:00" --before="2021-04-30 00:00:00" | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done
原文鏈接:https://blog.csdn.net/zz975896590/article/details/119991177
相關推薦
- 2022-11-13 linux?shell腳本學習指南_linux shell
- 2022-05-20 Python?文件處理之open()函數_python
- 2022-04-12 input file詳細介紹、更改css樣式、獲取圖片地址、徹底清空上傳文件(建議收藏)
- 2022-04-15 Python3之字符串比較_重寫cmp函數方式_python
- 2021-12-15 由于redis服務器cpu100%的問題導致網站宕機訪問大量出現504gateway time-ou
- 2022-09-03 解決Python報錯問題[SSL:?SSLV3_ALERT_HANDSHAKE_FAILURE]_p
- 2022-04-06 Go?結構體序列化的實現_Golang
- 2022-11-09 css實現div盒子旋轉
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支