Questions tagged [git-svn]

git-svn is a bidirectional bridge between git and Subversion allowing to use a remote Subversion repository as a local Git repository while still be able to send changes back to Subversion.

This function allows a developer to work in git locally while still using a SVN repository as the master revision control system. They can use all features of git locally, and then check their files into a Subversion server when they are ready to commit. Running git locally allows the developer to use the staging area, do branching and merging, rebasing, cherry-picking, etc.

Basic Commands:

This makes a local git copy of the SVN repository:

git svn clone url://path/to/repo -s

Work with the files using the local Git repo. When ready to commit changes to git:

git commit -am 'What I worked on'

To commit back to the master SVN server:

git svn dcommit

If working with other developers and a merge is necessary, git-svn rebase pulls any changes from SVN to your local git repository.

1931 questions
49
votes
5 answers

Can I copy a Git working copy onto another machine?

I am in the process of creating a Git working copy from our SVN server with 'git svn clone'. But this takes quite some time (we have > 20.000 revs and almost 10.000 files). I have some other machines (for other developers) that I would like to…
Xavier Nodet
  • 5,033
  • 2
  • 37
  • 48
48
votes
6 answers

Git svn rebase : checksum mismatch

I have a problem when I try to do a git svn rebase on my repository. It displays : Checksum mismatch: code/app/meta_appli/app_info.py expected: d9cefed5d1a630273aa3742f7f414c83 got: 4eb5f3506698bdcb64347b5237ada19f I searched a lot but haven't…
darkpotpot
  • 1,321
  • 2
  • 11
  • 25
48
votes
9 answers

Author not defined when importing SVN repository into Git

I'm trying to import our SVN repository into Git. When I run either this command: git svn --authors-file=/path/to/authors --trunk=trunk clone https://my-repo/project . or this command: svn2git https://my-repo/project --no-minimize-url -v --authors…
Greg
  • 12,119
  • 5
  • 32
  • 34
47
votes
3 answers

How to use git-svn to checkout only trunk and not branches and tags?

I'm working on a Java legacy project which has 20 modules connected to each other. So, each module has it's own branch and tag. The structure is like this: /projects .svn - module1 .svn -trunk -branch -tag -…
toy
  • 11,711
  • 24
  • 93
  • 176
45
votes
3 answers

Git-svn and Eclipse?

Is there a plugin for Eclipse for git-svn? I'm looking for a way to handle the SVN repo with Git (for fast branch switching etc.)
Konrad Garus
  • 53,145
  • 43
  • 157
  • 230
44
votes
8 answers

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…
markerikson
  • 63,178
  • 10
  • 141
  • 157
44
votes
2 answers

git - how can I clone local svn repository?

I am completely unable to find any explanation how I should specify location of existing svn repository. In other words - what should be used as URL in git svn clone URL when svn repository is local?
Bulwersator
  • 1,102
  • 2
  • 12
  • 30
44
votes
4 answers

git-svn clone checkouts wrong repo?

So I am trying to switch to git, by using git-svn. I am having a svn repo called myrepo from which I want to clone just the project called myproject. The thing is that by running the following command: git svn clone path-to-repo/myrepo/myproject…
hyperboreean
  • 8,273
  • 12
  • 61
  • 97
42
votes
1 answer

Cloning git repository from svn repository, results in file-less, remote-branch-less git repo

Working SVN repo I'm starting a git repo to interact with a svn repo. The svn repository is set and working fine, with a single commit of a basic README file in it. Checking it out works fine: tchalvak:~/test/svn-test$ svn checkout…
Kzqai
  • 22,588
  • 25
  • 105
  • 137
42
votes
2 answers

git svn clone of a single directory of SVN repository

I am attempting to use git svn to clone a single directory of a SVN repository into a Git repository. If I use git svn clone svn+ssh://path/to/repo/trunk/directory, I get a Git repo without branches that mirror the branches in the source SVN…
oconnor0
  • 3,154
  • 6
  • 34
  • 52
42
votes
3 answers

Is it possible to make git svn dcommit result in a single svn commit?

According to the manual, git dcommit “will create a revision in SVN for each commit in git.” But is there a way to avoid multiple Subversion revisions? That is, to have git merge all changes prior to performing the svn commit?
plindberg
  • 877
  • 1
  • 9
  • 15
41
votes
8 answers

Speeding up the initial git-svn fetch

I have a big repository, 100,000+ revisions with a very high branching factor. The initial fetch of the full SVN repository using git-svn has been running for around 2 months and it's only up to revision 60,000. Is there any way to speed this…
MrEvil
  • 7,785
  • 7
  • 36
  • 36
41
votes
3 answers

How to bridge git to ClearCase?

I've recently used git svn and enjoyed it very much. Now I'm starting a new project at a different customer. At that site the SCM of choice is ClearCase. I haven't found a baked equivalent of git svn for ClearCase. Is there anybody who has tried to…
Bas Bossink
  • 9,388
  • 4
  • 41
  • 53
40
votes
9 answers

Is there a git-svn windows client something like TortoiseSVN?

I like TortoiseSVN's Windows integration. Is there something like that for dealing with git-svn? I'd even go with a less integrated GUI if it is quick enough to access. What I don't want is a CLI as I rarely would have a command prompt sitting in…
BCS
  • 75,627
  • 68
  • 187
  • 294
40
votes
3 answers

Cloning a Non-Standard Svn Repository with Git-Svn

I'm relatively new to Git, but I've found it so easy to work with at home that I'd like to use it at work where our projects are stored in Svn repositories. Unfortunately, the repositories are slightly non-standard and I'm having trouble getting…
Rob Wilkerson
  • 40,476
  • 42
  • 137
  • 192