Git snippets

    git config receive.denycurrentbranch ignore
    vi .git/hooks/post-receive

    #!/bin/bash
    cd ../
    env -i git reset --hard


    chmod +x .git/hooks/post-receive


    git diff --name-status SHA1 SHA2 | cut -f2

git @blog