I’m new to Git (coming from SVN). Was wondering if it’s possible to setup a 3 tier environment for software development. By 3 tier I mean something like this:
SVN
(as top remote repo)
|
GIT 1
(as middle tier remote repo)
/ \
GIT 2 GIT 3
(local git repo) (local git repo)
At the moment I don’t use the middle tier (Git 1) remote repo. So it’s only local Git repos pushing changes to remote SVN repo.
Because the top level SVN repo is not always available to me (due to connectivity issues) I was wondering I was wondering if it’s possible to put a middle tier Git repo in the middle (Git 1) which all clients (Git 2 and 3) would push changes to and, say at the end of the day, changes from Git 1 would be pushed to SVN.
So the question is: is this kind of setup possible?
When you push back to
svnthe authorship will be lost (that is important if you have more than one committer), becausegit-svnuses one user to push changes. But what is worse, the commits pushed tosvnwill be modified (thesvnrevision will be added) which will make future work if not completely impossible way to painful.