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)
上一篇 2021年9月1日 下午7:00
下一篇 2021年9月1日 下午8:00


相关推荐

  • GPT分区怎么装Win10 GPT格式硬盘安装Win10系统的方法

    GPT分区怎么装Win10 GPT格式硬盘安装Win10系统的方法

    2026年3月16日
    3
  • selenium鼠标点击_jquery获取鼠标点击位置

    selenium鼠标点击_jquery获取鼠标点击位置fromselenium.webdriverimportActionChainsfromseleniumimportwebdriver#定位到要双击的元素driver=webdriver.Chrme()element=driver.find_element_by_xpath(“xxx”)#对定位到的元素执行鼠标双击操作ActionChains(driver).double_click(element).perform()…

    2026年4月16日
    4
  • MySQL8.0正确修改密码的姿势[通俗易懂]

    MySQL8.0正确修改密码的姿势[通俗易懂]mysql更新完密码,总是拒绝连接、登录失败?MySQL8.0不能通过直接修改mysql.user表来更改密码。正确更改密码的方式备注:清空root密码MySQL8.0不能通过直接修改mysql.user表来更改密码。因为authentication_string字段下只能是MySQL加密后的43位字符串密码,其他的导致错误。错误不报出,但是无法再登录mysql,总是会提示无…

    2022年8月13日
    4
  • 软考之路(四)—软件project一 概念模型,逻辑模型,物理模型

    软考之路(四)—软件project一 概念模型,逻辑模型,物理模型

    2021年12月7日
    104
  • 网页下载文件错误_python安装报错

    网页下载文件错误_python安装报错如图,使用webdriver的过程中出现如下提示,代码正常,下载地址正常,在正常浏览器中也可以成功下载文件但是模拟浏览器却无法成功获取文件;尝试了开发模式启动、禁用或启用js等等,都没有成功,快要放弃chrome准备改选firefox的时候,看到了一个解决方法:此方法只针对一种情况有效:如果你在下载路径前加了r,转义了原始字符串,如下那么,去掉“r”试一下成功了如有问题请留言…

    2025年11月20日
    3
  • xquery简介_XQuery简介

    xquery简介_XQuery简介注意 本文在 2005 年 12 月所做的更新包含了 XQuery 规范的最新更改 八个工作草案现在已达到 W3C 候选推荐书 的状态 使该规范整体上更接近最终的建议书 主要的全文本文件于 2004 年首次发布 最近已更新 更新工具的需求工作草案以及有关构建 XPath XQuery 标记程序的草案均于 2005 年首次发布 XQuery 功能的数量在不断增长 XQuery 实现者列表和 XQuery 实现者列表也在不

    2026年3月17日
    2

发表回复

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

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