News for hackers. Stuff that matters.
Re:Tell HN: HN Replies Data Security Incident by darekkay on Wednesday April 28, 2021 @11:42AM (#26970651)
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

There are no comments on this comment yet.