What problems might I face keeping a directory under git and svn control? -



What problems might I face keeping a directory under git and svn control? -

i've been running problems git-svn, , in searching solution stumbled across this page, in author decided utilize both git , svn, since both hold of of import info in .git , .svn directories.

i suspect main problem type of workflow coordinating between svn , git, , making sure updates/commits happen in lockstep. thought of having workflow along these lines:

git init svn checkout https://svn.myplace.com add together .svn .gitignore git add together . git commit -m 'initial commit' git checkout -b working

hack, commit, hack, commit, hack, commit

git checkout master svn update git add together . git commit -m 'svn update' git merge working master prepare possible conflicts svn commit

wash, rinse repeat

if stick workflow (and of course of study using other fancy git features), there issues might bite me, or seem pretty reasonable (based on fact repos here @ work subversion, , i'm not in charge of decisions)?

i used similar approach (as detailed here) 5 months without real problems.

it require discipline, if bad happens can ditch git repository , start again.

git svn

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -