13
Mar
2017

Git snippets

13 Mar 2017
    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