Reuse .git directory.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]