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
2 answers

git-svn revert locally committed delete

git-svn is currently driving me mad. I ran: git rm git commit The file is still in the svn repo, but I have no idea how to check it back out so that it is in revision control. I want to do the equivalent in svn to: rm svn…
JonnyCplusplus
  • 881
  • 3
  • 12
  • 22
1
vote
1 answer

what i can do after git svn clone fails?

my issue is not the same as this git-svn clone fails unexpectedly, since it can be solved by remove --no-metadata option, i have no such option in my command, my commad is simply as: git svn clone -s svn://xxx.xxx times amd times again, i failed to…
hugemeow
  • 7,777
  • 13
  • 50
  • 63
1
vote
2 answers

Basic git workflow understanding

I have some basic git questions, which i do not understand yet I hope someone can help me. Lets say I'm working on a Magento project, I run it local but i want to bring it online. So i push my shop to my server using git. Everything works fine until…
Kevin Katzke
  • 3,581
  • 3
  • 38
  • 47
1
vote
1 answer

git reset branch

Is it possible to reset branch that is not currently checked out? I want to create a cron script that will perform git svn fetch and then update all local branches tracking svn remote branches with new changes.
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
1
vote
1 answer

Simple "Get all new commits from SVN and put them into a true GIT, to 'svn' branch" setup?

it is my first attempt to make git-svn project. I have Debian server with direct access. Info: - local SVN is one branch and i won't be doing any local or remote commits What i want to archive: Create true GIT local repository. That's easy…
ALIENQuake
  • 520
  • 3
  • 12
  • 28
1
vote
0 answers

How do I find the differences between two git remotes

In my local copy of our svn repo (created using git-svn), I have multiple remotes representing a series of releases of our project: remotes/tags/release1 remotes/tags/release2 etc. How can I use git to show me the changed revisions and/or the diffs…
Tim Keating
  • 6,443
  • 4
  • 47
  • 53
1
vote
2 answers

auto update svn from git

Here's what I would like to do. Is it possible have project in git. Lots of people pushing, pulling, merging etc. Normal it workflow have ONE AND ONLY ONE of those git repo's push changes in it's master branch to svn. No one else will ever commit…
gman
  • 100,619
  • 31
  • 269
  • 393
1
vote
0 answers

Can (git svn dcommit) output which SVN commands it would run?

I know about git svn dcommit --dry-run. However, due to (rename detection/folder deletion/other complicated issues that I can't conveniently predict), I would like to be able to view a dry run that actually outputs the SVN commands it would run,…
Max Nanasy
  • 5,871
  • 7
  • 33
  • 38
1
vote
1 answer

Calling GIT SVN FETCH from a Crontab

I'm trying to run a scheduled cron job using a crontab from a linux box where I'd run the command git svn fetch on a periodic basis. here is what my crontab looks like: 1 #!/bin/bash 2 PATH="/usr/local:/usr/local/bin:/bin" 3…
sksallaj
  • 3,872
  • 3
  • 37
  • 58
1
vote
2 answers

How to keep up to date my topic branch in GIT?

I have master branch (It is working copy), then some point in time I created another branch named topic and was working under it. But yesterday I did rebase on master branch. Now when I build my project, it is able to build in master branch but not…
Rohan Nemaro
  • 99
  • 1
  • 3
  • 6
1
vote
0 answers

Git SVN - Invalid revision range

I am using git together with SVN. I am trying to perform git svn dcommit but it gives me this error: $ git svn dcommit fatal: Invalid revision range 20edee48314fb1d070d84c1641abd5489d9a1479..refs/remotes/git-svn rev-list --pretty=raw --reverse …
Shervin Asgari
  • 23,901
  • 30
  • 103
  • 143
1
vote
2 answers

Git-svn rebase failing tells me update-index failed

Super weird error, I looked around and found these similar questions, however I am not sure it's the same: Error rebaseing/updating a git-svn repository git-svn rebase error update-index --refresh: command returned error: 1 This part of the error…
fjlksahfob
  • 1,019
  • 3
  • 16
  • 27
1
vote
1 answer

git svn preserve deleted branches

I have noticed that deleted branches in svn is not preserved in git. I know that branches in git and svn is rather different in the way they are processed. However that seems to be dangerous that svn to git cloning looses some information. Is it…
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
1
vote
2 answers

How to keep local branch history with an atomic git-svn dcommit operation?

I do my development of various features in git branches. When I want to check my code into SVN via git-svn, I do the following: git co feature_branch git svn rebase git co master git svn rebase git merge --no-ff feature_branch git commit…
titaniumdecoy
  • 18,900
  • 17
  • 96
  • 133
1
vote
1 answer

Symfony 2 and gits : How do i install that vendors library ?? I got errors

I'm trying to set up a Symfony dev platform on webfactionnal. I'm using Git so when I download S2 I took th "without vendors" version and followed those instructions. So everything went fine until step 8 :$ php bin/vendors install I got several…
Miles M.
  • 4,089
  • 12
  • 62
  • 108