美文网首页
git.技巧.美化log

git.技巧.美化log

作者: 少林_cf79 | 来源:发表于2018-06-06 15:10 被阅读0次

方法是通过git config添加 lg 脚本,

方式一: 在 ~/.gitconfig 中添加如下内容:

[alias]

      lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'

方法二: 运行git命令

person@pc:: git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"

美化前

美化后

相关文章

  • git.技巧.美化log

    方法是通过git config添加 lg 脚本, 方式一: 在 ~/.gitconfig 中添加如下内容: [al...

  • 如何美化 PPT 柱形图

    上期跟大家分享了 PPT 图表美化技巧,主要介绍了折线图和饼图的美化技巧。本期将为大家分享柱形图的一招美化技巧:图...

  • 如何找buge并解决

    技巧1: 打印中间结果 想方设法的在代码中打印一些 Log,然后根据 Log 去分析出错的原因。 技巧2:将错误结...

  • Excel快速制作和美化表格技巧

    表格的制作和美化是必备的工作技巧,本期与大家分享一下相关的技巧。 本期表格美化最终效果如图所示: 源表格数据如下图...

  • 查看ANR日志

    标签(空格分隔):Android改Bug技巧 【Android】抓取log(anr) 1、anr问题的log一般都...

  • 解决GitHub一直443报错

    I had to disable HTTPS to SSH rewriting for Git. Check in...

  • ubuntu 16.04(个人备份自用)

    ubuntu使用技巧备份 ubuntu美化 ubuntu下使用nvm安装各种版本的node

  • Git checkout remote branch

    List all branches in the remote git. List all remote repo...

  • Git Learning Process

    Learn More,Pratice More,Have a good day! Setup Git. Learn...

  • git port problem

    During two day,when I use the git. Frank,Jason and me,we ...

网友评论

      本文标题:git.技巧.美化log

      本文链接:https://www.haomeiwen.com/subject/qambsftx.html