[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Use Subversion to Manage Git?

From: Daniel Shahaf <danielsh_at_apache.org>
Date: Wed, 22 May 2013 04:15:14 +0000

On Tue, May 21, 2013 at 09:55:51PM -0400, Jeffrey Walton wrote:
> Hi All,
>
> My apologies if this has been asked. A search of the archives doe not
> show anything recent, and Google is returning a lot of spurious hits.
>
> I'd like to use Subversion to manage a Git. Is anyone aware of a
> plugin that offers the extensions? I was thinking something like: `svn
> checkout git://...`. After the initial checkout, subversion would know
> its a git repo and translate subversion commands to git. It would be
> great if it could handle something like: `svn checkout -git
> ssh://john@example.com//opt/repo.git`.
>

I am not aware of such a thing. In Subversion terms, this would require
writing libsvn_ra_git --- i.e., a wire protocol client module. (But read
on...)

> I only need four or five basic commands - checkout, update, commit,
> add (files), remove (files).
>

It sounds like what you are really looking for is a git cheatsheet for those
five commands (e.g., 'git commit -amm && git push'), or a wrapper around git(1)
that tweaks the UI (these seem to crop up every so often), or...

You could look into using another DVCS to interact with Git repositories; for
example:

http://mercurial.selenic.com/wiki/HgGit
http://doc.bazaar.canonical.com/migration/en/foreign/bzr-on-git-projects.html

Daniel

> I would like to use subversion to manage git it because I'm happy with
> subversion (I understand the workflow and know the commands), git
> baffles me due to its workflow and out-of-the-box complexity (I have
> no clue as to what most of [1] talks about, or why I have to do it
> after a checkout), I don't have the time to read the book at the
> moment (the man pages suck, and I have no spare cycles for the next 6
> or 8 weeks or so), and I can no longer avoid git (in the past, I
> simply walked away because it was not worth the aggravation).
>
> Jeff
>
> [1] http://stackoverflow.com/questions/572549/difference-of-git-add-a-and-git-add
Received on 2013-05-22 06:15:23 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.