![](/img/trans.png)
[英]How can I get git history (date range) log to a file without author, date, commit message and commit hash
[英]how to get git log without the commit message
我只想获取没有additions
和deletions
的git log
,没有author
、 date
、 commit hash
和commit message
详细信息,用于确定修改了多少行代码。 目前,我可以使用以下bash
命令删除除commit message
之外的所有上述内容
git log origin/master --numstat --since="2 weeks ago" --no-merges | egrep -v 'Author|Date|commit
上面的输出如下
为 IDENTITY-3591 添加测试用例
4 0 modules/integration/tests-common/admin-clients/pom.xml 129 0 modules/integration/tests-common/admin-clients/src/main/java/org/wso2/identity/integration/common/clients/challenge /questions/mgt/ChallengeQuestionMgtAdminClient.java 223 0 个模块/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/challenge/questions/mgt/ChallengeQuestionManagementAdminServiceTestCase.java 2 0 个模块/integration/tests-integration/tests-backend/src/test/resources/testng.xml 5 0 pom.xml
更新 SAML 元数据版本
10 10 个模块/p2-profile-gen/pom.xml 2 2 pom.xml
更新依赖版本
4 4 pom.xml
更改 carbon.xml 中要从项目版本中选取的版本标记的值
1 0 模块/分发/pom.xml
修复 carbon.identity.auth.version 名称
1 1 pom.xml
降级 identity.data.publisher.oauth.version 以避免测试失败
1 1 pom.xml
将依赖项更新到最新版本。
10 8 pom.xml
为 maven 版本插件使用的每个版本属性添加依赖项。
29 28 个模块/p2-profile-gen/pom.xml 175 4 pom.xml
如何在没有commit message
情况下获得输出? 提前致谢
你可以这样做:
$ git log --stat --format="%H"
您可以根据需要自定义它。 这里
$ git log --pretty=format:"%h $ad- %s [%an]"
Here:
- %ad = author date
- %an = author name
- %h = commit hash (short)
- %H = commit hash (full)
- %s = subject
- %d = ref names
Git 的漂亮文档列出了所有占位符。
试试这个
git log --numstat --format=
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.