How to synchronize two git-svn repos -
i have use subversion repository , i'd use git-svn. switch computer , @ moment need commit changes , update other computer. changed code wouldn't work, idea create 2 git-svn repos , synchronize them push/pull, , sync them (or 1 of them) svn repository. possible? switching repository git no option. (sadly)
if need sync svn git repo both of computer, yes: each repo "git-svn" one.
create 2 repos, , create own set of git branches on top of git-svn ones.
but must not merge/push/pull branch dcommit'ed svn: need pay attention caveats section of git-svn:
for sake of simplicity , interoperating subversion, recommended
git svn
usersclone
,fetch
,dcommit
directly svn server, , avoid gitclone
/pull
/merge
/push
operations between git repositories , branches. recommended method of exchanging code between git branches , users git format-patch , git am, or 'dcommit’ing svn repository.running
git merge
orgit pull
not recommended on branch plandcommit
because subversion users cannot see merges you’ve made. furthermore, ifmerge
orpull
git branch mirror of svn branch,dcommit
may commit wrong branch.
Comments
Post a Comment