From: Mahesh Vaidya <forvaidya@gmail.com>
To: git <git@vger.kernel.org>
Subject: Reuse .git directory.
Date: Thu, 25 Mar 2010 23:20:14 +0530 (IST) [thread overview]
Message-ID: <10467746.91269539410487.JavaMail.mvaidya@mvaidya-desktop> (raw)
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
next reply other threads:[~2010-03-25 17:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 17:50 Mahesh Vaidya [this message]
2010-03-25 17:58 ` Reuse .git directory Ramkumar Ramachandra
2010-03-25 19:24 ` Junio C Hamano
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=10467746.91269539410487.JavaMail.mvaidya@mvaidya-desktop \
--to=forvaidya@gmail.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