Reputation: 3098
For various reasons, I need to separate the repository from the working copy onto separate drives, though allow push/pulls to still function normally.
Is this possible in Git?
Is this possible in SVN?
If both- is one more easy-to-do this with than the other?
Just getting started with this, thanks in advance
Upvotes: 0
Views: 79
Reputation: 188164
With git you can set the GIT_DIR
environment variable:
If the
GIT_DIR
environment variable is set then it specifies a path to use instead of the default .git for the base of the repository. The--git-dir
command-line option also sets this value.
For an example, see also this question: How to have git repository in NFS partition and working-tree in local partition?
SVN separates repository and working copy by design, as far as I remember; just initialize the repo on one location and checkout to another (using a remote or local URL).
Upvotes: 2