git-filter-branch有--env-filter、--tree-filter、--index-filter、--parent-filter、--msg-filter、--commit-filter、--tag-name-filter等。
所有这些都可以一起使用吗,或者是一些变异的排他性?例如,如果我想调整索引和更改提交者,可以在相同的运行中使用--index-filter和--env-filter吗?
发布于 2015-02-24 08:24:39
事实上,它们都可以一起使用。唯一不允许的是尝试同时设置--prune-empty和--commit-filter (因为--prune-empty是作为提交过滤器实现的,特别是git_commit_non_empty_tree "$@"的过滤器)。
https://stackoverflow.com/questions/28690942
复制相似问题