From: Paolo Bonzini <bonzini@gnu.org>
To: Roald de Vries <rdv@roalddevries.nl>
Cc: git@vger.kernel.org
Subject: Re: git push stages original version on server
Date: Fri, 11 Sep 2009 13:09:27 +0200 [thread overview]
Message-ID: <4AAA2FE7.5020802@gnu.org> (raw)
In-Reply-To: <D7E5118C-AE88-4C4B-8D8A-5AF16ECF731D@roalddevries.nl>
Pushing to a non-bare repository is discouraged.
> - How can I have git automatically checkout pushed changes on the server?
I think you could in principle add a hook that does the "git checkout"
or "git reset --hard $(git symbolic-ref HEAD)", but I suggest pushing to
a bare repository and have the hook trigger a "git pull" elsewhere.
Paolo
next prev parent reply other threads:[~2009-09-11 11:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-11 10:40 git push stages original version on server Roald de Vries
2009-09-11 11:09 ` Paolo Bonzini [this message]
2009-09-11 11:11 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AAA2FE7.5020802@gnu.org \
--to=bonzini@gnu.org \
--cc=git@vger.kernel.org \
--cc=rdv@roalddevries.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.