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 Password View/Reset?

I have a personal learning project that I shelved for awhile but recently decided to get back into. After hearing so much about Git, I decided to give it a try. Thus far I've been able to initialize an empty Git repository but then it prompts me for…
Shawn
  • 633
  • 1
  • 6
  • 13
1
vote
1 answer

Moving from SVN to GitHub

I am trying to move one of my SVN repositories to a new repository in GitHub. Since I don't have much experience yet with Git, I'm trying to follow instructions I found on Stack Overflow and GitHub. I only need the trunk of the project, which is in…
Schiavini
  • 2,869
  • 2
  • 23
  • 49
1
vote
2 answers

where is git-svn's git-svn TAG?

I am using git-svn in order to practice with git. I mean I am by no means a git expert. In the beginning I found git daunting but I am getting fascinated by git's design and power. I have a question I could not answer searching on internet, perhaps…
carnicer
  • 494
  • 3
  • 9
1
vote
1 answer

"git svn fetch" creates index.lock file then complains about it

I'm migrating a large subversion repository, with history, to git. I started by cloning the svn repo using 'git svn clone' command. This crashed while cloning, however, I resumed the migration by executing 'git svn fetch'. The migration had been…
ajmg
  • 31
  • 5
1
vote
1 answer

Completely remove an empty git commit from Subversion history

So I migrated a SVN repository to GitHub. I checked out the migrated repository using SVN, and I accidentally made an empty commit (r75 in SVN history). In order to remove the empty commit, I checked out the repository again, this time using git…
Zachary Murray
  • 1,220
  • 9
  • 16
1
vote
1 answer

Pushing revisions of a single file via git-svn

I am developing a small project in git: it is actually a single XML file plus a couple of scripts for testing purposes. I need to submit that XML file to a third party who keeps a several such XML files (no scripts) in an SVN repo. Is it possible…
Michał
  • 2,755
  • 1
  • 17
  • 20
1
vote
1 answer

Imported svn repo, not getting pushed to github

I imported an existing svn-repo into my preset git repo using the git svn clone http://svn/repo/here/trunk command. Now I can see all the logs of the svn commits done after firing the git log command. I want to push these files to github, but git…
eminemence
  • 721
  • 1
  • 6
  • 21
1
vote
2 answers

Tips on using Git with svn in presence of a large number of svn externals

I have a workflow(on svn) which I am trying to replicate with git, but am unable to. I have a large number of Django apps (which are plugged together to form a form a full project) Some of these are in one large repo and others are in smaller…
agiliq
  • 7,518
  • 14
  • 54
  • 74
1
vote
1 answer

git svn rebase not working but git svn fetch does

I'm having an issue where when I run git svn rebase or git svn rebase -l nothing happens. However, git svn fetch brings down new revisions successfully. This started happening when I used 'gitk' to revert my working copy to a previous revision,…
codewario
  • 19,553
  • 20
  • 90
  • 159
1
vote
1 answer

“Unable to determine upstream SVN information from working tree history” when using two (Git and SVN) repositories

I have a following problem - I'm working on a Git repository that's based on a SVN repository. I used git svn clone path-to-repo command to clone the SVN repository so my Git one retains the same history and has a common base. After cloning, I added…
Bartosz Górski
  • 1,140
  • 13
  • 30
1
vote
2 answers

How to find newly added, deleted and modified files in git repository

Is there a command that would generate a list of every deleted file,added and modified files in the repository.Pls suggest.
Alok
  • 929
  • 10
  • 26
1
vote
1 answer

git commit not working on directory

First of all, I am new to git and I'm sorry in advance if my question seems foolish to you. I'm working on the files inside a directory say FrmMain/FrmMain/Forms/ [Has approx 100 files] I have initialized the git at the Parent Directory i.e. first…
FAISAL
  • 459
  • 8
  • 22
1
vote
1 answer

How do I switch to git-svn compatibility mode in SmartGit on Windows

The documentation on the SmartGit website and in their shipped documentation pdf file talks about having a Normal mode and a git-svn compatibility mode. My question is: How do I switch to git-svn compatibility mode in SmartGit on Windows?
Mido
  • 504
  • 2
  • 6
  • 18
1
vote
1 answer

How do I clone a git repo from a local svn repo

I want to learn to use git-svn. I have an svn local repository on my disk that I've checked out a while ago using something like this: svn co http://myserver.com/mysvnrepo/trunk/ /mysvnrepo/ ls -a /mysvnrepo/ . .. .svn foo bar This…
OLL
  • 655
  • 5
  • 20
1
vote
1 answer

How to use Git to migrate SVN repository

Somebody is planning to move the subversion repository I work on (8000+ commits). Is there a way to use git-svn to replay the last, say, 20 commits from the old location once the migration is finished? (not only my own commits, but also other team…
Jesper Rønn-Jensen
  • 106,591
  • 44
  • 118
  • 155