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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • linux如何查看so库已加载_cmake生成静态库

    linux如何查看so库已加载_cmake生成静态库Linux程序运行找不到动态库.so文件的三种解决办法方法一:添加环境变量方法1.添加当前用户当前终端的环境变量-临时exportLD_LIBRARY_PATH=/home/czd/…#.sofilepath方法2.添加当前用户的环境变量修改~/.bashrc文件,在其末尾,添加环境变量vim~/.bashrcexportLD_LIBRARY_PATH=$LD…

    2022年9月18日
    1
  • konga–添加service和rouce详细步骤

    konga–添加service和rouce详细步骤注意 先有 service 后 才能创建 rouce 可以有多个 包括删除顺序先删除 route 再删除 service 次序问题 1 添加 service 是抽象层面的服务 他可以直接映射到一个物理服务 host 指向 ip port 也可以指向一个 upstream 来做到负载均衡 通俗说 这个 service 就是后台访问接口配置 属性 描述 name 必填 服务

    2025年11月4日
    2
  • 官场迷情–横刀灬一笑[通俗易懂]

    官场迷情–横刀灬一笑[通俗易懂]无业游民沈宜修偷瞄上小loli依琳,而他的宅女老婆秋叶却毫不知情。一次偶然的机会,沈宜修见识了美女市长苏静美的风情万种。沈宜修也开始了在依琳、静美和秋叶之间的周旋。此时事业也有所发展的沈宜修,却被美女主编林曼琴给剽窃,想要讨回公…

    2022年6月11日
    35
  • 什么是Unix时间戳?(转载)[通俗易懂]

    什么是Unix时间戳?(转载)[通俗易懂]Unix时间戳(Unixtimestamp),或称Unix时间(Unixtime)、POSIX时间(POSIXtime),是一种时间表示方式,定义为从格林威治时间1970年01月01日00时00

    2022年8月6日
    8
  • mysql的可视化工具_Mysql可视化工具Navicat的基本使用

    mysql的可视化工具_Mysql可视化工具Navicat的基本使用一、写在前面的话相信大多数php初学者刚学习mysql的时候,应该都是在cmd黑窗口中进行一些基本sql的增删改查操作,但是在企业中几乎不会在黑窗口环境中进行sql的编写,主要有两点原因:1.界面不友好(虽然有点逼格)2.容易造成数据的误删除(不像女朋友没了可以再找),下面就给大家介绍mysql可视化工具navicat的常用的操作。至于怎么安装navicat相信大家都会,基本一路next,然后选…

    2025年7月23日
    3
  • 不确定度用计算机怎么算,算A类不确定度用计算器该怎样按[通俗易懂]

    不确定度用计算机怎么算,算A类不确定度用计算器该怎样按[通俗易懂]不可以。根号也只能显示平方根,立方根以上就别想了,这三次方程解出来不知道是几次方根。这种计算器下面那个L-R=0是用来检验的,说明就不是用公式解的,估计是二分法或者什么其它近似解法,L-R=0只是在计算器内部算法允许的精度范围内保证L-R=0,所以肯定不支持根号。A类不确定度的计算方法。n=6时,u(a)=S(x)。数据平均值设为q。用贝塞尔公式S(x)*S(x)=[(X1-q)*(X1-q)+(…

    2022年9月23日
    4

发表回复

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

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