Hacker News new | ask | show | jobs
by darekkay 1883 days ago
Yes, that's roughtly what I am doing in my post-receive hook:

    export GIT_DIR=/path/repo
    export GIT_WORK_TREE=/path/working-directory
    git checkout -f