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
0
votes
0 answers

pushing a large cloned repo to github is failing (8gb) - fatal the remote hung up unexpectedly

As part of a migration process I want to migrate an old svn repo to github. It's important to keep the history from this old repo and not overwrite anything (so I do not want to force push). A newly created repo in GitHub exists and it contains no…
aDiT
  • 95
  • 1
  • 5
0
votes
1 answer

Update old git repo from Subversion

I started working with gSOAP and found a git version of the source code in Github. But it turned out this repo hasn't been updated for 10 years. Since it's the top entry for "gsoap source code" in Google I wanted to update it, but I have no idea how…
parsley72
  • 8,449
  • 8
  • 65
  • 98
0
votes
0 answers

using git-svn with XCode to commit and fetch

we are using svn in our company and since XCode doesn't support that anymore i have been looking at svn-git. But i didn't fully understand it. Can i make it so, that committing from XCode will also commit the changes to the svn repository or would i…
0
votes
0 answers

Incremental SVN to Git migration of very large repositories

We are trying to migrate our SVN repos to Git using the "git svn clone / git push" approach. This is working fine whilst we run it in one "big bang". But due to some long running migrations of very old and large repos, we need to split the migration…
0
votes
0 answers

How do I fetch additional history in a git-svn clone?

I've already done git svn clone to create a repo. It has one year of history. I want to extend how far back my history goes. How can I do that? I tried using fetch with my start revision, but it did nothing and had no output: git svn fetch -r…
idbrii
  • 10,975
  • 5
  • 66
  • 107
0
votes
0 answers

How should I set git's autocrlf on a git-svn repository?

How can I safely configure git-svn so I don't unintentionally change line endings when dcommitting to svn? I'm currently using git's autocrlf=false and Unix file shows a mix of line endings: > file * actionbutton.lua: ASCII text, with CRLF…
idbrii
  • 10,975
  • 5
  • 66
  • 107
0
votes
0 answers

Check list of files being committed to svn

I am writing some pre commit hook script to modify files and commit it. While I was going through internet I found we can use "svn st" command to get list of files. But this will give all files which I don't want to commit right now. So i need list…
peterjohn
  • 1
  • 1
0
votes
0 answers

Git Svn getting autoprops like $Date$ , $Author$, $Revision$

In our Svn repo, Some auto props defined for sql files; I'm commiting sql like like this to svn repo. $Rev$ $Date$ $Author$ After commit, When I checked the file I see this variables replaced with values regarding revision,commit date and the…
Joseph K
  • 1
  • 1
0
votes
0 answers

Can I refresh a GIT SVN repository after failed connection?

I'm working on converting SVN to git. Ran the command, git svn clone .... and it ran for 48 hours and then I got the following error. Can't create session: Unable to connect to a repository at URL 'https://local/svn/repository' at C:/Program…
Dwight T
  • 1,457
  • 2
  • 11
  • 20
0
votes
0 answers

How to migrate multiple branches in git-svn?

The structure of the SVN configuration is as follows. https://hogehoge/svn/ trunk/ hoge/ release01/ release02/ tags/ hoge/ branches/ project1/src project2/src Now, I would like to…
0
votes
0 answers

GIT svn clone - not enough memory for initialization update-ref error

I have a problem during performing git svn clone command: git svn clone --trunk="path to specific folder in svn repo" --no-metadata --authors-file=users.txt "path to svn repo" /c/tmpRepo Command is working fine by some minutes and then suddenly I…
0
votes
0 answers

Update the new tags into git-svn repo and push to the gerrit

I did a migration from svn to Gerrit using the git-svn way. Everything went well and I have that workspace intact. Now in svn some commits happened recently and a tag was generated. The same commit was done to gerrit also by the developer but the…
rahul raj
  • 105
  • 1
  • 1
  • 13
0
votes
1 answer

Taking (patch) the delta from svn to git

We have a Gerrit repository which was in sync with similar svn repo till some point in time. Now gerrit is behind by 4 commits. I need to take those 4 commits from svn to gerrit. I tried multiple options I found here. What I tried: cd to svn repo…
rahul raj
  • 105
  • 1
  • 1
  • 13
0
votes
3 answers

Git: Merge two unconnected branches

I have problems with merging two unconnected git branches. The situation is the following: originally the was a svn repository, at one point a new git repository with the code from svn as an initial commit - without any history was created. And some…
patman
  • 2,780
  • 4
  • 30
  • 54
0
votes
0 answers

GIT SVN Clone Removes Keywords expansion (e.g. Revision, ID, Author etc) From File

I'm doing a migration of SVN to GIT and cloning my SVN repo to my local machine (with history). The result of this clone removes the keyword data from both the current revision as well as every historical revision for every file in the repo.…
bbeck
  • 13
  • 3
1 2 3
99
100