git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Checking out on a different+partial directory
@ 2010-05-17 10:53 Eli Barzilay
  2010-05-22  5:48 ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Barzilay @ 2010-05-17 10:53 UTC (permalink / raw)
  To: git

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!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-27  5:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-17 10:53 Checking out on a different+partial directory Eli Barzilay
2010-05-22  5:48 ` 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

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).