Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instructions on using TortoiseGit to interact with an SVN repository?

I've been using TortoiseSVN on Windows for years with local filesystem repositories for my own projects. I'm planning to start collaborating with a friend on one of the projects, and will be shifting the repository to my own website. I've read a lot of "git beats SVN!" posts over the last couple years, and figured I ought to at least see what the fuss was about. Some research turned up the "git svn" command, and that TortoiseGit claims to have some level of git-svn support. I like the idea of keeping the SVN repository, and doing some local commits or branches with git before committing them to the repository. The "shelve" command also sounds useful.

Unfortunately, while there's a number of CLI git-svn tutorials, there's nothing for TortoiseGit (which admittedly seems to be still in early development). As a result, I'm having problems trying to figure out what workflow I need to get these pieces to cooperate.

I have an SVN repository in D:\Projects\repositories\MyProject. I created D:\Projects\temp\gittest, and tried to do a TortoiseGit "Git Clone" of the repository. From there, I've had issues trying to indicate the location of the trunk/branches/tags folders (which are just the standard layout in my repository). I was only able to get useful results when I left those unchecked. When I did seem to get the git repository started correctly, I was able to make some changes and do a couple git commits, but then had problems doing an SVN DCommit.

So, I'm hoping someone out there can provide a reasonably detailed set of instructions on how to correctly use TortoiseGit with an existing SVN repository (with the repository on either the local filesystem or on a remote server). No "don't use SVN!" responses, please - I'm interested in learning how to get these two pieces to work together. If you feel TortoiseGit's SVN support isn't mature enough to make this work, that would also be useful information.

Thanks!

like image 876
markerikson Avatar asked Feb 14 '10 06:02

markerikson


People also ask

How do I use TortoiseGit?

Right-Click in the File explorer within the repository and select TortoiseGit =>Create Branch. Name it enhancement and select the checkbox Switch to the new branch. Click Ok. Make a change to the file in the enhancement branch and commit the same.

How do I make a TortoiseGit repository?

TortoiseGit Manual Creating an empty git repository is very simple. At an empty directory, just use the explorer context menu and select Git Create Repository here . You can find more information at the section called “git-init(1)”.


1 Answers

  1. Create a directory
  2. right click, "Git Clone..."
  3. Enable"From SVN Repository" and select all further settings
like image 183
StefanPapp Avatar answered Sep 21 '22 10:09

StefanPapp