Reuse .git directory.
- From
- Mahesh Vaidya <forvaidya@gmail.com>
- Date
- Mar 25, 2010, 17:50 UTC
- Message-ID
- <10467746.91269539410487.JavaMail.mvaidya@mvaidya-desktop>
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