top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

multi workspace solution for GIT

+1 vote
474 views

I would like to implement a multi-workspace version of git. The main goal is to have several independent workspaces using only one and single repository (without their own cloned repos). All these things will run on one host, or probably will be located on nfs and will be available on more hosts. Yes, I know there should be some restrictions, for example push and pull will work on the repo (probably there can be something like my-push). Branches will be somehow tied to the workspaces, also all workspaces will have its own HEAD. I would like to discuss here how can it be implemented, what will (or will not) work.

posted Oct 3, 2013 by Anderson

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

That was implemented long time ago in the form of the git-new-workdir script available in the "contrib" Git subdirectory [https://github.com/git/git/blob/master/contrib/workdir/git-new-workdir]. The basic idea this Unix shell script implements is to create a separate directory with ".git" subdirectory in it which links to the "real" one *but* leaving intact things like HEAD which are purely local. This allows to have any number of separate checkouts of different branches, all referring to a single repository.

Note that this script won't work on Windows as it makes use of symlinks which doesn't play together well with Windows.

answer Oct 3, 2013 by Dewang Chaudhary
Thanks, it looks promising (although it is quite old) Does anyone know about its restrictions, or does anyone have experiences with it?
Similar Questions
+2 votes

Cloning huge repositories like Linux kernel takes considerable amount of time. Is it possible to incorporate a multi-threaded simultaneous connections functionality for cloning? To what extent do we need to change the architecture of the current code and how large would be the scope of the work? That just seems an interesting idea to me and would liked to share it with the community.

0 votes

I want to set up Git so that when I commit to BitBucket my web server automatically fetches those commits.
How can I do that?

+1 vote

We would like to include it in our software master and have it installed on all computers. We are just double checking as some license agreements can be confusing.

+1 vote

I am using Windows 10 and am getting "The signature for git-2.7.0-64-bit.exe is corrupt or invalid" ! Same for the 32bit version.

Please help?

+1 vote

I was wondering if there are any install flags for git to be installed silently and to be able to pre-choose the install options to make it completely silent? Using the standard /S flag for the .exe just seems to launch it as normal.

...