Git development
 help / color / mirror / Atom feed
* Reuse .git directory.
@ 2010-03-25 17:50 Mahesh Vaidya
  2010-03-25 17:58 ` Ramkumar Ramachandra
  2010-03-25 19:24 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Mahesh Vaidya @ 2010-03-25 17:50 UTC (permalink / raw)
  To: git

Reuse .git directory.

I would like work 4 different branch simultaneously viz.

master, feature, bugfix, expt but would like to use same same GIT_DIR. Is this possible ? so that I can save some space ?

I have tried following 
* git clone /path/to/repos
* export GIT_DIR=/path/to/repos/.git
* mkdir ~/feature
* git checkout -b feature master

This step misses the files. Please advise me if such an approach is correct ?


Thx

Mahesh

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

* Re: Reuse .git directory.
  2010-03-25 17:50 Reuse .git directory Mahesh Vaidya
@ 2010-03-25 17:58 ` Ramkumar Ramachandra
  2010-03-25 19:24 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Ramkumar Ramachandra @ 2010-03-25 17:58 UTC (permalink / raw)
  To: Mahesh Vaidya; +Cc: git

Hi,

> I would like work 4 different branch simultaneously viz.
> master, feature, bugfix, expt but would like to use same same GIT_DIR. Is this possible ? so that I can save some space ?

All Git branches *are* contained in the same GIT_DIR. I'm not sure
what your question is, but I suspect you don't understand how
branching works in Git. Please read up some introductory material on
this.

-- Ram

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

* Re: Reuse .git directory.
  2010-03-25 17:50 Reuse .git directory Mahesh Vaidya
  2010-03-25 17:58 ` Ramkumar Ramachandra
@ 2010-03-25 19:24 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2010-03-25 19:24 UTC (permalink / raw)
  To: Mahesh Vaidya; +Cc: git

git-new-worktree, perhaps?

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

end of thread, other threads:[~2010-03-25 19:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 17:50 Reuse .git directory Mahesh Vaidya
2010-03-25 17:58 ` Ramkumar Ramachandra
2010-03-25 19:24 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox