Syncs a working branch to a clean merge branch by cherry-picking commits that don't touch filtered paths. Use when syncing branches to beta/main during PR preparation, or when asked to "sync to beta", "cherry-pick to beta", or "update PR branch".
80
100%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Register a git alias to invoke cherry-pick-filter via git cherry-pick-filter instead of mks cherry-pick-filter:
git config alias.cherry-pick-filter '!mks cherry-pick-filter'Verify: git config alias.cherry-pick-filter — expected: !mks cherry-pick-filter
Use --global to register the alias for all repositories on this machine:
git config --global alias.cherry-pick-filter '!mks cherry-pick-filter'Once registered, all mks cherry-pick-filter invocations can be replaced with git cherry-pick-filter:
git cherry-pick-filter <target-branch> --filter <prefix> [--filter <prefix>...] [--dry-run]