Keep CSS in sync with SASS with Git

I made this shell script for use as a post-merge hook in Git that I’d like to share.


You are using the SCSS flavor of SASS; even if you don’t have SASS installed on the system you’re using this on, you have it and compass installed on a machine you have SSH access to.


  1. You must create a symbolic link to this in your .git/hooks directory “ln -s /path/to/git/hook/in/source/control /path/to/.git/hooks/”
  2. Change theme_path to match where your .scss file is

Published by

The Machine
