Read more in the story on Medium.
Any feedback or even a pull request welcomed!
- Set up a new repository for Sketch files
- Install Python 3 (optional)
- Download the pre-commit, post-merge and post-checkout hooks from this repository
- Copy them into .git/hooks folder in your repository
- Make the scripts executable: run
chmod +x .git/hooks/pre-commit .git/hooks/post-merge .git/hooks/post-checkout
in your repository - And try to commit some Sketch files!