Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Extensions usable with SVN repos?

Tags:

git

windows

svn

Can Git Extensions be used without issues (or at least, with very few ones) as a SVN client? I've no problem using the command-line git-svn, but in some cases (picking lines/hunks to commit, for example) I'd rather use a GUI client.

If there are issues, I'd like to see them along with your workarounds/solutions.

like image 571
Isxek Avatar asked Sep 09 '11 11:09

Isxek


People also ask

Can I use Git with SVN repository?

Use git-svn, it is really simple. First clone your repository with git svn clone then you can git svn dcommit your work or git svn rebase it on the latest changes. Make sure your history is always linear by always rebasing your local branches on master so that you can merge them with git merge --ff-only .

Which popular tool can be used to migrate SVN to Git?

There are many tools such as svn2git available to perform the migration, in this tutorial we will focus on git-svn utility: a Git extension , which can be used to check out a Subversion repository to a local Git repository and then push changes from the local Git repository back to the Subversion repository.

Which feature of Git makes attractive over SVN?

Git has the advantage that it's MUCH better suited if some developers are not always connected to the master repository. Also, it's much faster than SVN. And from what I hear, branching and merging support is a lot better (which is to be expected, as these are the core reasons it was written).


3 Answers

As alluded to by @matth, SVN support was removed from Git Extensions v3.00. However, there is a plugin (mast-eu/GitExtensions.SVN) you can install to add basic git svn commands to Git Extensions. To install it, open Plugins > Plugin Manager and browse for "gitextensions.svn".

Once installed, SVN commands are added to menu bar.

Picture of menu bar with commands

like image 192
brandonaut Avatar answered Sep 28 '22 22:09

brandonaut


As a way of an updated answer (I think this question was asked in 2011), I just started using Git Extensions for a project that uses Subversion as the repo, but I wanted to use Git locally. Learning my way into it, Git Extensions has GUI based actions for commands like SVN Fetch, SVN Rebase, and SVN Dcommit.

So, if (and I don't know because I wasn't using it in 2011) Git Extensions didn't support Subversion repos in 2011, it looks like they have that support now.

Here is an example (see red highlights at bottom):

enter image description here

So, to better answer your question, yes it does have support as an SVN/Git client.

like image 31
joshmcode Avatar answered Sep 28 '22 22:09

joshmcode


git-svn creates a repository that behaves as a regular Git repository unless you are doing one of it's special operations (dcommit etc.). Thus, it is perfectly fine to interact with that repository via any external Git client as long as you use it to do things you'd normally be able to do from the command line without screwing up git-svn. (E.g. you wouldn't want to try to rebase upstream commits, GUI or not.)

(You will, of course, still have to use the command line for the special git-svn commands, unless you find a GUI that supports them.)

like image 37
Amber Avatar answered Sep 27 '22 22:09

Amber