【问题标题】:Change git diff default -U value更改 git diff 默认 -U 值
【发布时间】:2020-07-14 18:32:41
【问题描述】:

我似乎无法弄清楚如何在我的 ~/.gitconfig 中指定它,这样每当我运行 git diff <filename> 时,默认情况下它会自动包含 -U<line number>,所以我不必每次都输入它。

【问题讨论】:

    标签: git git-diff git-config


    【解决方案1】:

    它被称为“上下文行”:

    git config --global diff.context 5
    

    the docs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-10
      • 2014-05-16
      • 2015-08-06
      • 2012-12-06
      • 2017-06-11
      • 1970-01-01
      • 2019-07-05
      • 2014-11-06
      相关资源
      最近更新 更多