Thread (6 messages) flat view 6 messages, 5 authors, 2016-06-15

Re: Exporting a tree from a repository

From: Julian Phillips <hidden>
Date: 2016-06-15 22:43:21

On Sat, 14 Jul 2007, Ciprian Dorin Craciun wrote:
  Hello all!

  I am a new GIT user, I like it, so I started playing with it for
different projects I work on.

  Currently I am playing with "Linux from Scratch", and I have
written some scripts to automatize the build process -- kind of
install scripts...

  For this I use GIT to store all the source packages -- each inside
it's own branch :).

  My question is the following: How can I export an entire tree
without using a working directory, or cloning the repository. (Because
from what I have seen so far there is no way to use the same
repository with many working directories...)
You can have as many working directories as you want from one repository 
using the git-new-workdir script from contrib/workdir.  You do need to be 
careful when updating references though (you basically want to avoid 
updating a reference that you are using in another working directory).

You should also be able to use this to get an "export" - simply create the 
new workdir and then remove the .git (being careful not to accidentally do 
this in your actual repository).  However I expect there is a better way 
to do this ...

-- 
Julian

  ---
Quark!  Quark!  Beware the quantum duck!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help