From: Junio C Hamano Date: Sat, 21 Jan 2012 00:16:39 GMT Subject: Re: post-update to stash after push to non-bare current branch Message-ID: <7vr4ytdi54.fsf@alter.siamese.dyndns.org> In-Reply-To: <4F1A0311.30502@gmail.com> Neal Kreitzinger writes: > To get this to work I had to learn more about shell scripting and export > the GIT_WORK_TREE git environment variable. > > (post-update hook): > export GIT_WORK_TREE=/home/neal/FSNMSTHTML > git checkout -f HEAD Hmm, I thought "cd .. && git checkout -f HEAD" (or "git reset --hard") would have worked.