From: "Edward Z. Yang" <edwardzyang@thewritingpot.com>
To: git@vger.kernel.org
Subject: Re: git reset --hard w/o touching every file
Date: Sun, 02 Nov 2008 00:36:09 -0400 [thread overview]
Message-ID: <gejanr$os$1@ger.gmane.org> (raw)
In-Reply-To: <20081102033313.GB4936@coredump.intra.peff.net>
Jeff King wrote:
> Sorry, I don't quite understand. You want to check out some subset of
> files, but you don't know which subset?
Yeah, I should elaborate a little.
I'm using a script to automatically update a website with the contents
of a Git repository at a specified interval. While I could use git pull,
I've been told that it's safer to do a git fetch, and then a git reset
--hard remotes/master, because the former could trigger a merge and on a
live website that is NOT desirable.
Unfortunately, since Git touches all files on a reset --hard, it's
causing problems with the smart cache system, which checks whether or
not the cache file is older than the source file, and regenerating if it is.
Cheers,
Edward
next prev parent reply other threads:[~2008-11-02 4:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-01 4:48 git reset --hard w/o touching every file Edward Z. Yang
2008-11-01 11:05 ` Pierre Habouzit
2008-11-01 20:03 ` Edward Z. Yang
2008-11-02 3:33 ` Jeff King
2008-11-02 4:36 ` Edward Z. Yang [this message]
2008-11-02 5:52 ` Jeff King
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='gejanr$os$1@ger.gmane.org' \
--to=edwardzyang@thewritingpot.com \
--cc=git@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox