Re: post-update to stash after push to non-bare current branch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 21, 2012, 00:16 UTC
- Message-ID
- <7vr4ytdi54.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4F1A0311.30502@gmail.com>
Neal Kreitzinger <nkreitzinger@gmail.com> writes:
Show 6 quoted lines
> 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.