Pushing Git Repo into SVN

The last time I hooked Git and SVN together, I first did all my set up work in SVN (Tortoise). Running git svn clone hooked things together. Since I love Git so much more than SVN, this seems a bit backwards so let's set things up the other way around.

cd c:

cd Develop

mkdir Project

cd Project 

git init

git st //Shows that we are starting out on a branch called master 

Open up VS2008, created my solution and projects

vi .gitignore  //Add in my files to ignore

git add .

git ci

Open up Tortoise, create Project, Project/trunk, Project/branches, Project/tags //Wishing I didn't have to touch Tortoise... Advice?

git svn init https://central/svn/repos/Project -T trunk -b branches -t tags

git svn fetch

git co -b svn/import trunk

git merge master

git svn dcommit 


Is there a better way? I'm not sure that git merge is the right way to go...  

Published Thursday, February 14, 2008 3:14 PM by jeffg
Filed under:

Comments

# re: Pushing Git Repo into SVN

That's not bad.

In this case the merge will be fast forward, so it's probably ok.

If you want to avoid tortoise you can always

svn mkdir central/.../Project{trunk,tags,branches}

*If* you are in a bash shell

Friday, February 15, 2008 6:30 AM by chrisortman

# re: Pushing Git Repo into SVN

qooNaL  <a href="wxfeebmmfffl.com/.../a>, [url=http://qckzztqjcaeq.com/]qckzztqjcaeq[/url], [link=http://blhromusnezo.com/]blhromusnezo[/link], http://dqqpzrvpnjxm.com/

Monday, April 14, 2008 9:22 AM by hkpgsdafas

Leave a Comment

(required) 
(required) 
(optional)
(required)