6 ms·
these are great for ignoring files by name, but you often want to ignore binary files or other files by type. Set a global hooks dir, and then block binary fil
by tonymet 4mo ago
these are great for ignoring files by name, but you often want to ignore binary files or other files by type.
Set a global hooks dir, and then block binary files in pre-commit by using file or checking the git index
git config --global core.hooksPath ~/.config/git/hooks
Or block large changes, because binary mods are often larger than a real diff.