You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jeffrey Walton <no...@gmail.com> on 2013/05/22 03:55:51 UTC

Use Subversion to Manage Git?

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 only need four or five basic commands - checkout, update, commit,
add (files), remove (files).

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

Re: Use Subversion to Manage Git?

Posted by Daniel Shahaf <da...@apache.org>.
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

Re: Use Subversion to Manage Git?

Posted by Andreas Krey <a....@gmx.de>.
On Tue, 21 May 2013 21:55:51 +0000, Jeffrey Walton wrote:
...
> I only need four or five basic commands -
> checkout,

git clone $repo

> update,

git pull --rebase (after committing your own stuff)

> commit,

git commit -a && git push (after a pull)

> add (files),

git add files

> remove (files).

git rm files

Looks easier than hunting down a nonexistent plugin.
Otherwise, take a look at svnhub.com.

Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800

Re: Use Subversion to Manage Git?

Posted by Stefan Sperling <st...@elego.de>.
On Tue, May 21, 2013 at 09:55:51PM -0400, Jeffrey Walton wrote:
> It would be
> great if it could handle something like: `svn checkout -git
> ssh://john@example.com//opt/repo.git`.

You could create a git repository on github, and then use Subversion
to checkout and commit to that repository (yes, this works, it's a
special github feature, which is specific to github.com and isn't open
source): https://github.com/blog/1178-collaborating-on-github-with-subversion

You could also try subgit: http://subgit.com/

Re: Use Subversion to Manage Git?

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Jeffrey Walton,
am Mittwoch, 22. Mai 2013 um 03:55 schrieben Sie:

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

Those things are equally easy using git, simply look for comparisons
of the main commands of the two worlds. Besides that, depending on
your OS, IDE etc. simply use a GUI tool which will abstract
everything. TortoiseGIT is actually usable.

http://git.or.cz/course/svn.html

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow