I use git to interface with an SVN repository. I have several git branches for the different projects I work on.
Now, whenever I switch from one branch to another using
To keep multiple checkouts of the same repo, you can use git --work-tree. For example,
mkdir $BRANCH.d
GIT_INDEX_FILE=$BRANCH.index git --work-tree $BRANCH.d checkout $BRANCH
In the contrib/
directory of the git
distribution, there is a script called git-new-workdir
that allows you to checkout multiples branches in different directories without cloning your repository.