Patterns to use for removing deleted filed #556
-
|
git filter-repo --invert-paths --path directory/name.json works fine, but git filter-repo --invert-paths --path directory/*.json and git filter-repo --invert-paths --path directory/.json don't... What's the right way to use wildcards here, or do i need to pipe in the file names instead?, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
If you want to use globs, use |
Beta Was this translation helpful? Give feedback.
If you want to use globs, use
--path-glob. If you want to use regexes, use--path-regex.--pathlooks for an exact match, so--path directory/*.jsonis only going to find a file literally nameddirectory/*.jsonand no other files underdirectory/with a.jsonending.