Git clean and smudge filters don't do anything
问题 I defined smudge and clean filters for my git repository. I tested the scripts individually and I'm pretty sure they work correctly. But when I git commit && git push , the remote version is un-filtered. What am I doing wrong? Also, is there a way to test whether the filter works without pushing it to a remote repository? The repository looks like: zsh/ |- zshrc git/ |- gitconfig .gitattributes .gitconfig config zshrc-clean.zsh zshrc-smudge.zsh gitconfig-clean.zsh gitconfig-smudge.zsh zsh