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
1 answer

git-svn: Follow SVN-Repo with partial read access

I would like to follow a SVN-Repo via git-svn, that has a restriction on it's root node. Precisely that is: * SVN with standard layout (trunk, branches, tags) * anonymous read access on the above directories * no read access on the root dir The…
joergd
  • 553
  • 4
  • 13
1
vote
1 answer

extra branches created by git svn clone

Continuing from my previous question I decided to go ahead and reclone the thing : $ git svn clone --branches=Branches/Wrye\ Bash/* \ --tags=Tags/Wrye\ Bash/* \ --trunk=Programs/Wrye\ Bash/ --prefix=svn/ \…
Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
1
vote
1 answer

Git-Svn safety and api usage

I can't find much on this anywhere, before diving into git-svn I was wondering how safe it is to use against an SVN repository. I have experimented a little, and had one check in which seemed to fail part way through, but didn't seem to affect my…
gmn
  • 4,199
  • 4
  • 24
  • 46
1
vote
1 answer

Git config file error

I am getting this warming when i run any git command from terminal . I thouht it was a permission issue but can't seem to fix. Can anybody point me to the right direction ? below is the warming and the content of my .config…
Mark M.
  • 35
  • 4
1
vote
1 answer

Source Control for Xamarin /VS2010 cross-platform solutions

I would like to know how to connect Xamarin Studio with a TFS (Team Foundation Server) for source control purposes or, if it's not possible, how to connect Visual Studio 2010 to Git. I am already trying to use TFS from http://tfs.visualstudio.com/…
ᗩИᎠЯƎᗩ
  • 2,122
  • 5
  • 29
  • 41
1
vote
2 answers

How to install git-svn on Linux Mint 15 (Olivia)

I am required to interface with SVN at work, but prefer to run Git locally to allow me to have multiple local branches open at any given time. After making the switch from Windows 7 to Linux Mint 15 (Olivia) Cinnamon, I'm finding that git-svn…
DrewShirts
  • 147
  • 1
  • 6
  • 19
1
vote
3 answers

How to create a list of consecutive git diffs between two branches in svn format?

I have a git repository (actually a git-svn repository), I created a new branch and made several commits. on the local branch. Now I would like to get diff between all commits made on the branch. Lets say I have 5 commits between the original state…
Alex
  • 41,580
  • 88
  • 260
  • 469
1
vote
1 answer

Using Intellij to import existing git project

I'm currently using svn, and I'm using git-svn to checkout the project. I then tried to import the project into Intellij, and it kinda worked, but all the .iml files were red in color (don't know why, no errors as far as I could see). I then tried…
Vivek Rao
  • 576
  • 4
  • 25
1
vote
2 answers

Is it possible to make git svn "relocate" branch files on checkout?

Our svn repository has lots of branches that are branches off of sub-trees. This works OK with svn because I can check out that sub-tree in the correct spot in my working copy. However, if I check out the same branch using git, I get a working copy…
Knut Eldhuset
  • 1,789
  • 3
  • 16
  • 19
1
vote
1 answer

git-svn: merging two svn branches - add/add conflicts with no local changes

I have my repository setup with git-svn and two branches with an svn remote. I want to merge changes from svn-trunk into the svn-branch1 and then propagate those to my local git only branches. I am using: git checkout branch1 git merge master The…
brita_
  • 487
  • 7
  • 13
1
vote
2 answers

git-svn cloning a repo that lives in git but fetches from svn

I am a bit lost on what is the correct workflow for the following scenario. I'm using an open source project that's hosted on google code in a subversion repo. I prefer to use git so I've used git-svn to clone the svn repo to a git repo. The…
roundcrisis
  • 17,276
  • 14
  • 60
  • 92
1
vote
1 answer

Recover git-svn mirror after svn repository was "rolled back"

How can i repair my git-svn mirror repository? It is set up with git svn init ..., then github remote was added. The cron job is doing git svn rebase && git push periodically. Everything was fine until upstream somehow "uncommited" several revisions…
Vasily Redkin
  • 584
  • 1
  • 3
  • 17
1
vote
1 answer

git svn shows not correct merge graph

I use git svn bridge and have created some branches that I merged back into master, the problem is if a co-worker fetches the same repo with git-svn, the merge is not shown in his log. git svn ------------------------- master …
Remo Liechti
  • 182
  • 5
1
vote
2 answers

Git-svn: determine number of commits ahead or behind

Is there a way with git-svn to determine how many commits ahead or behind I am? Thanks!
Mr Mikkél
  • 2,577
  • 4
  • 34
  • 52
1
vote
1 answer

Export svn to git without a folder

I would like to migrate svn solution but without a specified files/folder. My problem is such because I commited a big library (50 mb) into svn which I do not need now, and I do not need project which use it. But the rest of solution is still…
Piotr Stapp
  • 19,392
  • 11
  • 68
  • 116