您可以将策略选项设置为全局gitignore吗?

问题描述 投票:0回答:1

例如我经常在命令选项中执行此操作

git rebase -Xignore-all-space [other分支]

是否可以将其默认设置为git config?

git git-config
1个回答
1
投票

没有用于设置默认策略选项的配置选项,但是可以为此使用别名。通常,涉及空间的策略选项对配置不利,因为它们会影响正确性。

示例别名如下所示:

git config --global alias.sprebase "rebase -m -Xignore-all-space"
© www.soinside.com 2019 - 2024. All rights reserved.