From: Eli Barzilay <eli@barzilay.org>
To: git@vger.kernel.org
Subject: Checking out on a different+partial directory
Date: Mon, 17 May 2010 06:53:55 -0400 [thread overview]
Message-ID: <19441.8259.634019.348195@winooski.ccs.neu.edu> (raw)
Say that I have a repository at /some/dir, and a tree that contains
most of its files at /another/dir (the second is a build directory,
made with `git archive', so some files removed due to export-ignore
attributes and some built files are present).
Is there a convenient way to make /some/dir usable as a repository?
Two things that I tried are
git --work-tree=/another/dir reset --hard master
which one time, but then failed with "fatal: unable to read tree...",
and another is
cp -a /some/dir/.git /another/dir
cd /another/dir
git reset --hard master
which looks like it can suffer from the same problem.
(It would be especially nice if there's a way to have only different
files touched in /another/dir.)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
next reply other threads:[~2010-05-17 10:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-17 10:53 Eli Barzilay [this message]
2010-05-22 5:48 ` Checking out on a different+partial directory Jeff King
2010-05-22 6:43 ` [PATCH] fix over-eager caching in sha1_file_name Jeff King
2010-05-22 6:59 ` [PATCH] remove " Jeff King
2010-05-26 5:07 ` Junio C Hamano
2010-05-27 5:10 ` Checking out on a different+partial directory Eli Barzilay
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=19441.8259.634019.348195@winooski.ccs.neu.edu \
--to=eli@barzilay.org \
--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;
as well as URLs for NNTP newsgroup(s).