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
1
vote
0 answers

Git svn subtree workflow

I have project A, which includes a local fork of project B. This is, project B's potentially modified sources are included in a subtree of project A. Project A uses svn, project B uses git. Using git for my local copy of project A, I want to: Be…
elmart
  • 2,324
  • 15
  • 17
1
vote
1 answer

git svn sync failure

I am following this thread Pushing an existing git repository to SVN to sync a git repository to svn. However I am stuck at git svn fetch git svn fetch RA layer request failed: REPORT of '/svnrepos/my_git/!svn/vcc/default': Could not read chunk…
Sheng
  • 1,697
  • 4
  • 19
  • 33
1
vote
1 answer

How to set username on tortoisegit dcommit?

I set up a svn server using svnserve to test how svn-git works. When trying to dcommit I run into the problem that the tortoise gui does not give the option to choose the username, it just prompts for the…
Răzvan Flavius Panda
  • 21,730
  • 17
  • 111
  • 169
1
vote
2 answers

git branches for SVN and Github

Here is a simple path of what I'm doing: $ cd /newdir $ git clone git@github.com:... . $ git branch -m master github $ git svn clone svn+ssh://... . $ git branch -m master SVN Then I have some scripts that do what is needed before pushing to…
Peter
  • 1,753
  • 18
  • 19
1
vote
1 answer

Forked a SVN project to GitHub, project now moved to GitHub. Possible to merge?

I forked a SVN project on GitHub some 2 months ago, using git-svn (git svn rebase), and made my changes, sending some (but not all) via patch files back. Now the project moved to GitHub, is there any way I can merge these two GitHub projects while…
Rangel Reale
  • 698
  • 6
  • 7
1
vote
2 answers

GIT (DVCS) - Lock or checked out the file (as like svn) and conflict merge the files

I am just moving from SVN to GIT. I have gone through the posts and comments but not finding effective solution. I have a below questions: How to checked out or Lock the files so, other developer is aware that file is unavailable and checked out…
TechS
  • 167
  • 1
  • 5
  • 14
1
vote
2 answers

When converting from svn to git using git-svn or svn2git, how can I change the base path of the repository and possibly still keep branches/tags?

I'm moving a project from SVN to git (completely, so no need for git svn's SVN interop features) and I've tried using both git svn and svn2git (nirvdrum's fork on github) and one problem I've got is that our repository layout in SVN was like so:…
Ibrahim
  • 1,883
  • 19
  • 27
1
vote
2 answers

Moving from git to subversion (yes, that way round): Using the trunk

I have been using git for 2 years now and love it. However, I am doing some work for a company that insist in using svn so I need to port my git way of doing things to svn. This is what I have learned so far: svn co https://the.remote.repo touch…
ale
  • 11,636
  • 27
  • 92
  • 149
1
vote
2 answers

Removing redundant repo directories when importing with git-svn?

I am trying to import a svn repository that follows the standard svn convention (trunk/branches/tags). The "problem" is that below each copy there are two totally useless directories that I'd really like to eliminate in my git repo. My svn structure…
krosenvold
  • 75,535
  • 32
  • 152
  • 208
1
vote
1 answer

Find largest folders in the repository and commit times of each developer

I'm new to git and I need to analyze a git repository thus is there any way to find the top largest directories in a git repository (newest version) and can we find the commit times of each developer by time range and short them from high to…
Xitrum
  • 7,765
  • 26
  • 90
  • 126
1
vote
1 answer

Fatal Error While Converting an SVN Repository to Git

I'm trying to clone a Subversion repository with: git svn clone svn://adress/repo --stdlayout I get a error around r119: I tried to checkout branches/Mikael at r119, and TortoiseSVN tells me that it does not exist. If I look at the log I can…
Heetola
  • 5,791
  • 7
  • 30
  • 45
1
vote
1 answer

git svn fetch on revisions does not align the history

I'm trying to migrate a very large svn repository and initially I just started a fetch from revision 13989. This gave me the chance of having an uptodate git mirror which was awesome - but it took weeks to create. Now I would like to get the full…
Max Rydahl Andersen
  • 3,630
  • 2
  • 23
  • 28
1
vote
1 answer

What's the correct way to deploy a git repo to Wordpress SVN?

I've seen a hundred different outdated, makeshift scripts that either use git-svn or do all of the hard work behind the scenes, but I still don't feel like I've found the right way to do this. I have a local git repo that I want to deploy to my…
Dave Kiss
  • 10,289
  • 11
  • 53
  • 75
1
vote
1 answer

How configure SVN in Cpanel/WHM?

I want to install SVN server in my Linax VPS with cpanel/WHM running. When checking RPM packages through WHM and SSH I saw that SVN is Installed as RPM package. How can I make it work ? I'm not that experienced with server administration. Can anyone…
Ashfaq Rahman
  • 85
  • 2
  • 5
  • 12
1
vote
1 answer

What is the best way to setup a development & production environment for a PHP/MySQL app?

I've been developing a web app locally on my local MAMP computer for the last few months. Now I am ready to launch it while continuing to add enhancements/fixes. So, I am wondering what is a good way to implement a development AND production server…
AXM
  • 806
  • 1
  • 9
  • 24