代码之家  ›  专栏  ›  技术社区  ›  Daniel Walker

重新基线时始终使用指定的选项

  •  0
  • Daniel Walker  · 技术社区  · 3 年前

    我最近发现了 --committer-date-is-author-date 的选项 git rebase 。每当我重新设定基准时,我都想将其设为全局默认值。有没有办法修改 .gitconfig 以便始终使用此选项?

    1 回复  |  直到 3 年前
        1
  •  1
  •   Schleis    3 年前

    一个选项是创建包含该选项的命令的别名。

    https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases

    git config global --alias.re 'rebase --committer-date-is-author-date'