![](/img/trans.png)
[英]How can I see the git command command output in my Jenkins Console Log for a build?
[英]How can i extend my git log command to get desired output
如何擴展以下命令,以便出現以下所需的 output?
git log --pretty=oneline --no-abbrev-commit
Output:
fcdb58d185039bd732e877a3cae6485608a39e70 (HEAD -> master, origin/master, origin/HEAD) Merge pull > request #42413 from bioothod:export_golang_functions_ma ster
1cc66e060d7ec25c89807065d453f20ab46ca93e Temporarily disable xla_compiler_test.
41f429e7b5e8393f3cddd6f2b53b148d19874d44 [XLA:SPMD] Fix bug in partial replicate resharding.
所需的 Output:
tag_version,commit-id, commit-message, author_email
您可以嘗試使用以下命令:
git log --no-walk --tags --pretty='format:%H, %s, %ae' --decorate=full
%H 將顯示完整的提交 hash,%s 用於提交消息,%ae 用於作者 email,“--no-walk --tags”將顯示每個附加了標簽的提交。
您可以在此處了解更多信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.