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
39
votes
9 answers

how do I find a list of files committed to a git branch?

How do I list all the files that I committed to a specific branch? I've committed about 40+ files to a branch, and I need to find the file names because I am trying to debug something, hard to do when I don't remember the file names. git log only…
iCodeLikeImDrunk
  • 17,085
  • 35
  • 108
  • 169
39
votes
3 answers

How to import and keep updated a CVS repository in Git?

There is a central repository in CVS, and I would like to use it with Git locally, and then send my changes back to CVS. What can I accomplish that on a daily basis? The tasks I would like to accomplish are: importing branches, getting history in…
Jatin Ganhotra
  • 6,825
  • 6
  • 48
  • 71
38
votes
2 answers

git-svn "Couldn't find revmap"- what does it mean?

When running git svn clone and often during subsequent git svn fetch operations I get this message for a number of folders: Couldn't find revmap for My repository seems to work fine. What does this message mean? Should I be…
spiffytech
  • 6,161
  • 7
  • 41
  • 57
38
votes
5 answers

Git gc using excessive memory, unable to complete

Final update and fix: The solution here turned out to be a combination of two things: using Windows Git rather than Cygwin Git as Graham Borland suggested, and the Git config settings pack.threads = 1 and gc.aggressiveWindow = 150. I have a large…
me_and
  • 15,158
  • 7
  • 59
  • 96
38
votes
3 answers

Git-svn W: -empty_dir warnings. What do they mean?

While trying to clone an existing Subversion repository using git-svn using standard layout, I got a bunch of W: -empty_dir (and W: +empty_dir) warnings. The cloned git repository seems to be working, i.e. I can do usual git operations and dcommit…
Barum Rho
  • 2,743
  • 1
  • 20
  • 21
37
votes
5 answers

Why does "git svn fetch" command seem to be stuck and does nothing?

EDIT: Workaround. Now we understand the issue, here is the solution: do git svn fetch -r REVISION:HEAD where REVISION is the number of the svn commit of the branch creation. I've been happy using git svn to work on the trunk of my project for a…
Samuel Rossille
  • 18,940
  • 18
  • 62
  • 90
36
votes
1 answer

How does git-svn handle line endings?

I'm pretty happy with how Git itself handles line endings, via core.autocrlf, core.eol + gitattributes (Tim's post is excellent). I have a Windows Git repo that has autocrlf set to true. So, all text files are stored in the repo as LF and live in…
citizenmatt
  • 18,085
  • 5
  • 55
  • 60
36
votes
1 answer

git svn cherry pick ignored warning

When I run git svn fetch it sometimes prints following warning: W:svn cherry-pick ignored (/path/in/svn:) missing 55 commit(s) (eg 9129b28e5397c41f0a527818edd344bf264359af) What this warning is about?
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
36
votes
4 answers

Git flow command error: 'flow' is not a git command

I am very new to Git and am starting to learn the command line version. I believe my git flow is not installed correctly. I am running this from a pc. When i run following command: git flow feature start JamesTest I get the following error: git:…
NetSystemAdmin
  • 505
  • 1
  • 6
  • 16
36
votes
4 answers

git svn fetch retrieves the same Subversion revision multiple times for branches

I am seeing git svn fetch repeatedly retrieve the same Subversion revisions when it finds branches in my Subversion repository. We are using the standard Subversion repository layout, with top level /trunk, /tags, and /branches directories (and the…
razeh
  • 2,725
  • 1
  • 20
  • 27
35
votes
2 answers

Assertion failed on git-svn checkout

I'm trying to checkout a svn repository with git using the following command on Windows 7: git.exe svn clone "https://..." "D:\repo" However, no matter what other options I try to use, the following error occurs: svn: E235000: In file…
A.R.C.
  • 910
  • 11
  • 22
35
votes
5 answers

How to set Subversion properties with git-svn

Is there a way to set subversion properties on a git repository that was created by git-svn? In my case, I want to edit the version of svn:external, svn:ignore and svn:executable. However, the only way to do so seems to involve a check-out with the…
Black
  • 5,022
  • 2
  • 22
  • 37
34
votes
2 answers

Git SVN Is Unable to Fetch from SVN Repository

I'd like to use SVN and Git together. I have an svn repository, and I'm trying to fetch to a working directory, but I encounter an error as below. svn, version 1.6.6 (r40053) git version 1.7.3.1.msysgit.0 The svn repository path is…
Sambath Prum
  • 1,858
  • 9
  • 25
  • 33
34
votes
7 answers

Can different git-svn clones of the same svn repository expect to be able to share changes then git svn dcommit?

I've read a great deal of "go from svn to git" and other "git-svn workflow" articles on the web, and still I think they often deal with overly simple situations. They are often targeted at guys who just want to use git and hack locally, without…
Ced-le-pingouin
  • 463
  • 6
  • 11
34
votes
3 answers

Git Svn - Found possible branch point

I'm trying to use git svn to clone a SVN repo into Git. I run the following command: C:\Projects>git svn clone -T trunk -b branches -t tags --no-metadata https://svn.mycompany.com/Projects/MyProject MyProject And I get the following error: Found…
Alex
  • 37,502
  • 51
  • 204
  • 332