# Usage // Notes

#### Git Hooks with Tower

> The Tower GIT client has an issue with ghooks as noted in [this issue](https://github.com/gtramontina/ghooks/issues/18)

> To fix, edit .git/hooks/pre-commit and replace with the code below

```bash
#!/usr/bin/env sh
# Generated by ghooks. Do not edit this file.
PATH="$PATH:/usr/local/bin"
__dirname=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
__filename="${0##*/}"

ghooks_runner="
var path = require('path');
var dirname = '$__dirname';
var filename = path.resolve(dirname, '$__filename');

try {
    require('ghooks')(dirname, filename);
} catch (e) {
    console.warn([
        'ghooks not found!',
        'Make sure you have it installed in node_modules.',
        'Skipping git hooks.'
    ].join('\n'));
}
"

node -e "$ghooks_runner"
```
