Skip to content

Instantly share code, notes, and snippets.

@ursachec
Created April 23, 2013 14:22

Revisions

  1. Claudiu-Vlad Ursache created this gist Apr 23, 2013.
    15 changes: 15 additions & 0 deletions howto_git_precommit_hook_nslog.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # How-To: git pre-commit hook for NSLog calls

    1. Download the NSLog pre-commit hook from
    `https://gist.github.com/plu/4124580`

    2. Copy the `pre-commit` file to `YOUR_PROJECT/.git/hooks/pre-commit`
    3. Make the hook executable by running
    ```
    chmod +x .git/hooks/pre-commit
    ```
    4. Enjoy!

    ---------------

    ![example](http://f.cl.ly/items/3v3G161Q1f3H3I0G1b0v/nslog.png)