Git输出格式——Git placeholders

Git输出格式——Git placeholders

git的输出格式,可以极大的方便我们处理输出字符串 最好的还是查看官方手册,虽然长,但有用!
http://www.kernel.org/pub/software/scm/git/docs/git-show.html [code lang=”html”] The placeholders are: %H: commit hash %h: abbreviated commit hash %T: tree hash %t: abbreviated tree hash %P: parent hashes %p: abbreviated parent hashes %an: author name %aN: author name (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %ae: author email %aE: author email (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %ad: author date (format respects –date= option) %aD: author date, RFC2822 style %ar: author date, relative %at: author date, UNIX timestamp %ai: author date, ISO 8601 format %cn: committer name %cN: committer name (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %ce: committer email %cE: committer email (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %cd: committer date %cD: committer date, RFC2822 style %cr: committer date, relative %ct: committer date, UNIX timestamp %ci: committer date, ISO 8601 format %d: ref names, like the –decorate option of git-log(1) %e: encoding %s: subject %f: sanitized subject line, suitable for a filename %b: body %B: raw body (unwrapped subject and body) %N: commit notes %gD: reflog selector, e.g., refs/stash@{1} %gd: shortened reflog selector, e.g., stash@{1} %gn: reflog identity name %gN: reflog identity name (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %ge: reflog identity email %gE: reflog identity email (respecting .mailmap, see git-shortlog(1) or git-blame(1)) %gs: reflog subject %Cred: switch color to red %Cgreen: switch color to green %Cblue: switch color to blue %Creset: reset color %C(…): color specification, as described in color.branch.* config option %m: left, right or boundary mark %n: newline %%: a raw % %x00: print a byte from a hex code %w([[,[,]]]): switch line wrapping, like the -w option of git-shortlog(1). [/code]

转载于:https://my.oschina.net/ifeixiang/blog/339548

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/109678.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • java 将String字符串转 List集合「建议收藏」

    java 将String字符串转 List集合「建议收藏」StringgameString=”199,99,243,34,52,57,193,277,194,284,275,270,274,54,238,259,225,262,32,53,31,196,33,286,246,285,94,200,276,269,242,271,40,272,278,251,5,288,11,283,245,253,58,241,282,197,237,93,55,

    2022年5月14日
    53
  • CSS深入理解absolute

    CSS深入理解absolute1.图片目标来覆盖,无依赖,真不赖;2.如何定位下拉框,最佳实践来分享;3.对其居中或边缘,定位实现有脸面;4.星号时有时没有,破坏队形不用愁;5.图文对其兼容差,绝对定位来开挂;6.文字溢

    2022年7月2日
    24
  • 解决 bcm43问题

    解决 bcm43问题

    2021年5月3日
    159
  • qt 当前窗口句柄_QT获取窗口句柄

    qt 当前窗口句柄_QT获取窗口句柄mac安装paramiko$brewinstallopenssl$/usr/local/opt/openssl/bin/c_rehash$exportARCHFLAGS=”-archx86_64&q…用Canvas制作剪纸效果在做剪纸效果之前,先介绍剪纸效果运用到的一些知识:1.阴影:在Canvas之中进行绘制时,可以通过修改绘图环境中的如下4个属性值来指定阴影…

    2022年7月14日
    19
  • 使用ARP命令[通俗易懂]

    使用ARP命令[通俗易懂]讲解ARPCache更新过程,并分析对应请求报文以及响应报文的内容。1.建立网络拓扑2.填写4个主机的ip地址和子网掩码3.分别对主机pc0和pc1的命令行中输入“arp-a”命令查看其ARP高速缓存,发现无任何缓存信息。4.切换到simulation模式,pc0和pc1的ip分别为源地址和目的地址5.创建一个简单的PDU6.可以发现pc0和pc1之间成功进行了一次传输,即pc0得到了pc1的ip地址和MAC地址7.可以看出pc0发送了一个广播报文8.pc1得到响应

    2025年6月19日
    1
  • ubuntu安装nginx1.8.0_装了centos还可以装ubuntu吗

    ubuntu安装nginx1.8.0_装了centos还可以装ubuntu吗下载nginx包安装由于上面已经安装了nginx,所以我们先卸载nginx。再重新上传nginx包,解压下载。有输入提示时,输入Y即可卸载apt-get安装的nginx#彻底卸载nginxapt-get–purgeautoremovenginx#查看nginx的版本号nginx-v安装依赖包apt-getinstallgccapt-getinstalllibpcre3libpcre3-devapt-getinstallzlib1gzlib1

    2022年9月19日
    5

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号