您好,欢迎来到保捱科技网。
搜索
您的当前位置:首页git log格式化日志

git log格式化日志

来源:保捱科技网

git log --pretty=format:"arg"


%H 提交对象(commit)的完整哈希字串
%h 提交对象的简短哈希字串
%T 树对象(tree)的完整哈希字串
%t 树对象的简短哈希字串
%P 父对象(parent)的完整哈希字串
%p 父对象的简短哈希字串
%an 作者(author)的名字
%ae 作者的电子邮件地址
%ad 作者修订日期(可以用-date= 选项定制格式)
%ar 作者修订日期,按多久以前的方式显示
%cn 提交者(committer)的名字
%ce 提交者的电子邮件地址
%cd 提交日期
%cr 提交日期,按多久以前的方式显示
%s 提交说明



本文出自 追趣,转载时请注明出处及相应链接


以下是我个人比较喜欢使用的git命令的别名命令:

1.status -- st

git config --global alias.st status

2.commit -- ci

git config --global alias.ci commit

3.branch -- br

git config --global alias.br branch

4.checkout -- co

git config --global alias.co checkout

5.日志输出 mglog

git config --global alias.mglog "log --pretty=format: '%h %an:%ae %cr %s'"


。。。


因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- baoaiwan.cn 版权所有 赣ICP备2024042794号-3

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务