Tag: git svn

git svn – Unrecognized URL scheme error

I’m getting the following error on attempt to clone svn rep with git svn: eugene$ git svn clone https://my.site/svn/ here Initialized empty Git repository in /Users/eugene/Documents/workspace/test/here/.git/ Bad URL passed to RA layer: Unrecognized URL scheme for ‘https://my.site/svn’ at /usr/local/git/lib/perl5/site_perl/Git/SVN.pm line 148. svn checkout https://my.site/svn/ works just fine. I’ve re-run cpan SVN::Core and install finished fine, […]

Expected FS format '2' found format '3 git-svn

I was just checking out git–svn and thought I would give it a try with one of my existing repository. When I ran git-svn I got this error. Couldn’t open a repository: Unable to open an ra_local session to URL: Unable to open repository ‘{MyFilePath}’: Expected FS format ‘2’; found format ‘3’ at C:/Program Files/Git/bin/git-svn […]

Keep git history when splitting a file

I want to take a function out of one file and put it into another, but keep the blame history. cp a.php b.php vim b.php # delete everything but 1 function vim a.php # delete the 1 function git add a.php b.php git commit But if I run git blame b.php I only see it […]

git-svn fetch/rebase failing after trying to repair a corrupted file

I recently had a corrupted object in my repository, pointing on my HEAD (the object was empty) . It happened after interrupting a git-svn command. Then, I restored my repository by changing manually the refs on this object. Now, I want to synchronize my git repository with SVN, but git svn fetch returns: fatal: Invalid […]

Git-svn merge two SVN branches

I have read numerous SO questions and blogs on git-svn and merging. Some of them (notably git-svn man page) warns against using merge anywhere near the branch I plan to dcommit from. Others, like this SO answer, state that merging is fine as long as I use one-off feature branches that I delete before dcommitting. […]

How can I move commits from the trunk to a branch in Git?

I made a bunch of commits to the master and realized after the fact that they should have been in a branch. I’ve looked at various things about rebasing and merging and resetting the master. But no attempts at manipulation have yielded a history that looks like what I’m trying to do. My attempts lead […]

What is the origin of the name 'dcommit' in git svn dcommit?

Does dcommit stand for Distributed Commit? Something else?

svn to git conversion

I am trying to convert a SourceForge project from Subversion to Git. According to some Googling, it should be possible to use this command: git svn clone http://PROJECT.svn.sourceforge.net/ PROJECT.git Where PROJECT is the project name at SourceForge, to get a SVN project checked out into a local git repository. However this just gives the following […]

Using git-svn, how do I dcommit tags?

I was using Git to retain a history of my project locally. I was later asked to commit the entire git project into a remote, empty svn project folder (the usual trunk, tags, branches structure, in that case and spelling). I was able to commit to the trunk perfectly fine, but none of the tags […]

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 […]

Git Baby is a git and github fan, let's start git clone.