git-svn

Migration from Subversion to Git in a company setting?

Is there anyone out there whose company has migrated from a medium to large Subversion repository to Git? If so: What were the pitfalls you had to overcome? How easy was it for your developers to make the switch and learn Git? Is it a good idea for companies to migrate at this point or should they wait for Git to become more mature (e....

remove data from a svn synchronized git repository

hello, we have a fairly huge svn repository that i access using git. so far everything was working fine. now someone accidentally added some huge chunks of binary data to the svn repository. (hundreds of MB!) of course git also sucked in those chunks (using git-svn). Is there a way to selectively remove some files from git without distu...

Find out if a particular commit exists on a git branch

I see a commit in foo branch's log. I'd like to determine if that commit has been cherry-picked onto branch bar. If I were in a pure git environment I think the hashes would be the same, but the branch in question was pulled in using git-svn. ...

Svn -> git migration with several trunk/branches/tags

I have a single SVN repository with the following current structure: project1 branches trunk tags project2 branches trunk tags which originally had this structure: project branches trunk proj1 proj2 tags That is, the project was split into two separate "subrepositories" (or whatever you want to call that) Is there any wa...

Git svn clone: How to defer fetch of revision history

I often have the case that I want to work on a SVN repository right away. But an ordinary git svn clone [url] also clones the entire history. So I want to speed things up. The first part is to fetch only the last revision into your Git repository. I do it like so: URL=http://google-web-toolkit.googlecode.com/svn/trunk/ REV=`svn info $UR...

Start tracking branches/tags on a git-svn repo that was tracking only trunk

I've started tracking an svn repository with git by cloning only its trunk directory. Now I want to track the other stuff, but I don't want to have to clone it again just to use --stdlayout since it takes a long time to download and I already have most of the code locally. How do I change the repository layout to match svn trunk/branches...

Converting svn to git, how to get the branches not to be just remote in the svn repo?

I'm quite new to git and I'm trying to move a svn repository to git. I followed the guide below so now I have a git repo on my server http://pauldowman.com/2008/07/26/how-to-convert-from-subversion-to-git/ So, if I do "git branch" git replies "* master" and if I do "git branch -r" i get a list of all the branches in the svn repository. ...

Git-SVN with multiple branch locations?

Our company subversion repo is a bit tricky: We've got a basic "default" layout with trunk, tags and branches. However, inside the branches, we have a "work" directory which contains more branches. Something like this: branches/release_1_0_x branches/release_1_1_x branches/work/dave/topic_one branches/work/tom/topic_two branches/work/s...

Importing History from SVN to Git - Change Committer Information

I'm working on converting some Subversion repositories over to Git using the git-svn tool. I noticed that even though it imports the author information correctly, the committer information does not match the author information (e.g. the committer date is the date/time I ran the git-svn tool). Is there a way to make the committer inform...

Questions on workflow for a team using a git-svn repo

I've bee reading up on git and git-svn. I'm pretty new to git but I've been able to create some basic repos. However, I'm a bit confused on how the workflow would go for git-svn being used by a team. The goal is to convert svn to git for branching and sharing purposes, then commit back to the main svn repo when ready to push to productio...

Working locally with Git when main repository is SVN

There is an open source project I want to checkout and contribute to. The main repository is SVN but I want to work in Git. Is this possible? Most of my searches turns up guides where you move from SVN to Git (or the other way around) and dont look back. If I checkout the project, make a change and push it to the branch I created on ...

git-svn password change

I'm using TortoiseGit on Windows XP. My team all use a central svn server as our central "canonical" code repository. It's all run on a windows network. I work locally with git, then use git-svn dcommit to commit regularly to the svn server. Our network enforces a regular password change - which changes my password for the svn server ...

How do I fix checking out HEAD^ in git.

Okay so I made some changes in my project that resulted in a huge mess. I had already committed the changes so I could go back to it later, and then used git checkout HEAD^ to checkout the previous commit. Now as I'm making commits to my project it shows the SHA-1 on the command line as the working branch (instead of master) I don't kno...

Unable to determine upstream SVN information from HEAD history.

I get this on every git svn command I try. I am using git version 1.6.4.2 on OS 10.6 The initial git svn fetch works, and i can do further fetches after that, but they do not enter the log or update the working copy. ...

git-svn problem

Is it possible to clone a git repository which has more than one revisions? We tried to do it, and after the 1000'th commit it does a GC and exits leaving the clone in a unusable state. r998 = a5cb4f6a377b0ca80cd95d73b0e32f0552b9cdfd (git-svn) M trunk/asdf/asdf.java r999 = a87b06ae8aa497bb28c294b7ff8668ce2e4c8fcc (git-svn) D tags/sdafas...

git svn clone result cannot be cloned

I've got several Subversion repositories for which I'm the only committer. Based on Paul Dowman's excellent instructions, I did the following: $ git svn clone https://localhost/svn/settings --no-metadata -Aauthors.txt Initialized empty Git repository in .git/ ... r1000 = 8655353158ef2e7be84c0115b16a14d327e9e842 (git-svn) Running git rep...

How do you view the status of your svn-git repo?

I understand how to initialize a git-svn repo, create a branch, do some work, merge branch, then use git svn rebase and git svn dcommit to push back to the svn repo. But between these two commands, how can you get a status of what is different between the two repos? Something like a git status that tells you that you have x number of fil...

Best way to import a svn repo to git that has trunk, tags, branches and releases

I run a project on sourceforge called mqmanager.NET that I inherited from the original author. Long story short I want to migrate this, and the rest of, my sourceforge projects to github. The problem here is that the typical import process assumes you have trunk, tags, and branches. I have these plus a releases folder. The particular com...

Can't invoke git-svn from command line

Hello, I just installed git on my linux machine (Kubuntu distro) by running the following command: sudo apt-get install git-core git-doc gitweb git-gui gitk git-email git-svn I would like to migrate a project which currently uses subversion to git. But if I run git-svn I get the message : git-svn: command not found Any way to fix th...

git-svn and a large project

I've scoured the web and found a lot about working with git-svn and branches, but nothing that fits my situation. I'm working on a large project, and I work on several of many branches throughout the week. Standard ways of handling git branching wouldn't work for me here... just because of the size of the code involved. It takes about a...