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.
1,939
questions
0
votes
0
answers
24
views
Why my repo is empty after migrating a svn repo to git?
Currently i have a problem while migrating (Permanent usage of Git planned) a svn repo to git. I followed the documentation on Git.
So i tried:
git svn clone https://srvserver/svn/Produktion/VB/VS2017/...
0
votes
2
answers
31
views
Solution for moving SVN from branch to trunk
I am attempting to use a git svn clone to move my SVN repo over to Git, whilst preserving the history. I know that Git SVN clone works for me as I have tried it with a simple test SVN repo.
The ...
0
votes
0
answers
33
views
How to clone SVN tags to GIT using tag name
I am currently working on migrating the SVN repository contents to GIT including trunk and tags. Strangely, i have hundreds of tags as below.
USERA-23.1.1
USERA-23.1.2
USERA-23.1.3
USERB-23.1.1
USERB-...
0
votes
0
answers
13
views
SVN subversion.javahl.ClientException: General filesystem error
It is regarding SVN repository. I have made changes in the sparse checkout file, When I commit the changes in the SVN, I am seeing below issue. How to fix this?
Created workspace
Did Sparse checkout ...
0
votes
0
answers
13
views
Git svn fetch restarts from 0 at each branch point
I am trying to clone the last 2 years of history from an SVN repository.
I specified in the git svn init that I only wanted to get revisions from 5000 to HEAD (using -r5000:HEAD) and followed with git ...
0
votes
0
answers
27
views
git-svn tells me file is out of date but rebase doesn't solve it
I have a Git repository that I want to push to an SVN repository. The SVN repo has a trunk/ and tags/ folder. I set everything up and did a git svn dcommit but it pushed my files to the root folder ...
2
votes
0
answers
23
views
SVN to git migration with git svn returns "update-ref -m r40894 refs/remotes/origin/trunk 22c8704953ab8e....: command returned error: 127
I am doing SVN to git migration using git svn.
We do not intend to use svn2git or subgit, this question is about using git svn.
We have already migrated number of repositories and did not have issues ...
0
votes
0
answers
18
views
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 ...
1
vote
0
answers
48
views
Svn to Git migration - command returned error: 128
I am trying to migrate a couple of exising svn repositories to a GIT repositories using git svn utlity.
Note : I am on Windows 11 Enterprise Edition and my svn repository is on a windows machine as ...
-1
votes
1
answer
213
views
SVN to Git migration failing because of Connection reset by peer 312 error
I am trying to migrate SVN to Git using git svn clone on Windows
git svn clone -r302360:HEAD https://svnserver/svn/Development/myapi --prefix=svn/ --no-metadata --no-minimize-url --authors-file=...
0
votes
1
answer
26
views
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&...
0
votes
0
answers
9
views
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 ...
0
votes
0
answers
42
views
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 ...
0
votes
0
answers
18
views
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 ...
0
votes
0
answers
20
views
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 ...
0
votes
0
answers
41
views
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 ...
1
vote
0
answers
54
views
Git Svn getting autoprops like $Date$ , $Author$, $Revision$ [duplicate]
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 ...
0
votes
0
answers
25
views
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 '...
0
votes
0
answers
55
views
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/
...
0
votes
0
answers
695
views
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/...
0
votes
0
answers
29
views
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 ...
1
vote
1
answer
39
views
git svn fetch is separating branch's subfolders into their own remote branches
I'm trying to migrate my SVN repo into a git repo, with a non-standard layout. I have my trunk and branches in the same folder in the SVN repo. My SVN repository's structure is like so:
branches/
...
0
votes
1
answer
79
views
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 ...
0
votes
3
answers
131
views
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 ...
0
votes
0
answers
82
views
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 ...
0
votes
0
answers
98
views
Git Svn Command Errors On Svn Tag Containing A Trailing Space
I've inherited a Subversion (SVN) repository with 10 years of history, but when I am trying to convert to GitHub using git svn command, although the following command is running perfectly, I am still ...
0
votes
1
answer
3k
views
Can't create session: Unable to connect to a repository at URL 'https://xxxxxxx' at C:/Program Files/Git/mingw64/share/perl5/Git/SVN.pm line 148
I have been able to download and migrate a SVN repository to gitlab, but I have faced a problem when trying to do the same with another repository located in other location(different url), because the ...
0
votes
1
answer
51
views
How to use git-svn for svn update?
Problem Background: I use git-svn for project management because my company uses SVN for its projects, but I want to use git locally because he has easy branch management and many good tools. Problem: ...
0
votes
1
answer
54
views
Git SVN init doesn't get full repository
I am trying to migrate our SVN repository to Git. Our SVN repository looks like this:
Repository name
->branches
->file1
->file2
->etc...
->trunk
->...
2
votes
2
answers
112
views
Contribute to WordPress Plugin using SVN
I want to contribute to a WordPress plugin, I asked plugin support, and they only have the WordPress default SVN repo.
I don't how to send pull requests using SVN,
Can anybody assist me, please?
...
3
votes
0
answers
605
views
Using git svn inside a GitLab CI/CD pipeline
I am facing the following situation: A SVN repository should be available in GitLab and a CI/CD pipeline should be created in GitLab CI/CD for it.
The difficulty is to synchronize SVN and Git. The ...
0
votes
1
answer
58
views
Determining SVN repo layout to migrate it to Git
I am trying to migrate a bunch of SVN repos to GitHub. It is important for the client to keep his history since it contains important intellectual property information. I am at the stage on my test ...
1
vote
0
answers
17
views
How to remove the large file commit in history from the repo genrated by git svn clone operation?
I created a repo "test-repo" on Github enterprise site and run following commands to push the local repo (c:\mytempdir) generated by git svn clone operation.
cd c:\mytempdir
git remote add ...
1
vote
1
answer
74
views
How to get sparse checkout path details in SVN
I am a beginner and not aware of much about SVN, Initially, I created an empty workspace via svn sparse checkout,
svn co --depth empty project_url/trunk my_local_work
and pulled the folder where I ...
1
vote
1
answer
70
views
Save svn properties (externals) during svn to git conversion to a file inside git repo
I'm trying to migrate a complicated subversion repository to git with 20,000. It has externals that change at least every 100 revisions. It has (and sadly depends on) empty folders.
My main question ...
0
votes
0
answers
56
views
GIT SVN Clone - how to set the output/results folder
I'm able to complete the conversion, but don't like the resulting folder structure. The repository I'm converting to GIT is a Visual Studio Solution that contains about 10 Projects.
The commands I'm ...
1
vote
1
answer
144
views
Migrating a non standard layout svn repository to git
I have a local svn repository with a non standard layout, i.e., without trunk, branches and tags and with many "flat" projects. It's like this:
<repo root>/project1/<source files>...
1
vote
0
answers
229
views
svn: E235000:assertion failed (!"URI canonicalization failed") error: git-svn died of signal 6
Getting below error while converting svn local export data into git on Ubuntu.
Please help me to resolve this error.
svn: E235000: In file '/build/subversion-owKwd0/subversion-1.13.0/subversion/...
1
vote
2
answers
176
views
Merge folders as branches when doing git svn clone
How do we use the git svn clone to create multiple directories as branches and retain the branch name as is.
Here is the current svn structure
svn/url/projectrootfolder/code
Subfolder1
Subfolder2
...
0
votes
1
answer
63
views
How to git svn tag just some folders?
I've a standard svn repo:
branches/
tags/
0.1/
0.2/
trunk/
devops/
code/
and i want to tag devops and code folders into tags/0.3 by git-svn.
Use of git svn tag 0.3 instead creates a new tag with ...
1
vote
0
answers
213
views
git svn rebase errors
When I do git svn rebase on trunk-svn (which is my local copy of the SVN repo's trunk branch), I get the following error:
fatal: invalid upstream 'refs/remotes/origin/trunk'
rebase refs/remotes/origin/...
0
votes
0
answers
82
views
SVN to Git having custom folder structure
I have reviewed a number of stackoverflow questions and havent been able to find a solution for my issue.
We are migrating from SVN to GIT. Unfortunately, we do not have the standard folder structure.
...
1
vote
1
answer
163
views
git svn keeps telling files need update
I have checked out an SVN repository using git svn with git 2.35.1. It has worked for a long time, but as of recently I get ghost-diffs:
$ git status
On branch master
Changes not staged for commit:
(...
0
votes
0
answers
118
views
Using git svn clone
In One of the Project I am working, I have been tasked to migrate SVN repository to Git.
I have seen some Answers how to do it, I was trying to use git svn clone to clone svn repository to git. As ...
0
votes
1
answer
75
views
GIT SVN - Use SVN for Development and GIT for Release Important Milestone
We have team (Team A) of 10+ members, they change the code frequently and commit to SVN.
Another team (Team B) is using GIT (Azure DevOps).
We need to push source code (from SVN) changes at certain ...
3
votes
2
answers
265
views
Move SVN changes to git
In the company where I work, we are currently in the process of migrating from SVN to git and also updating frameworks and languages version in the process. as a result i currently have 2 repositories,...
0
votes
1
answer
66
views
Subgit: Pattern is not empty and doesn't have format segment1/segment2/.../segmentN
I am trying to convert a Subversion repository to Git using subgit. The SVN structure is roughly as follows:
trunk
├── Projects
│ ├── Project1
│ │ └── src
│ ├── Project2
│ └── Project3
├── ...
0
votes
0
answers
297
views
Remove all commits from git repository that have no changes (refer to same tree as parent commit) using filter-repo
I cloned an svn repository using git-svn. But I exluded everything except one folder (let's say folder A) using --include-paths. Since the svn repository contains many commits for other files (outside ...
-1
votes
1
answer
95
views
Rebase on existing `git` history with `git svn`
I have a git repo which I made some commits in. An existing group of developers copy/pasted its files into an svn repo, and then invited me onto their team to work. So, the svn history starts with the ...
-1
votes
1
answer
49
views
How to show a diff for a given SVN revision
I am using git-svn and I would like to show the changes that were introduced by a certain SVN revision.
How to do that?