Tag: git svn

How to get the latest SVN HEAD in git-svn?

I’m using git-svn and I’d like to update to the latest SVN HEAD. When I type git pull it says: fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched. I read here that I should do something like: git checkout -b real-trunk remotes/trunk […]

Dropping older Git commits from history?

I have cloned an SVN repository into a Git repository, and I just want the last commits beginning from f3a5b2a commit. I do want to retain the changes, but they can be part of that f3a5b2a commit, I want to get rid of the unnecessary history because I don’t need it anymore and I have […]

git-svn cannot create a branch to follow SVN branching

I’m struggling with the following issue. When I continue fetching revisions from SVN with git svn fetch I’m getting the following error: Found possible branch point: https://somecompany.com/product/trunk => https://somecompany.com/product/branches/deep/branches/product-001, 72666 Found branch parent: (refs/remotes/deep/branches/product-001) b685b7b92813885fdf 6b8e2663daf884bf504b14 Following parent with do_switch Successfully followed parent error: ‘refs/remotes/deep’ exists; cannot create ‘refs/remotes/deep/branches/product-001’ fatal: Cannot lock the ref ‘refs/remotes/deep/branches/product-001’. […]

Is it possible to keep .gitignore files out of SVN?

I’m using git svn to merge changes from my local git repository to an SVN server. However, when I issue git svn dcommit it will actually commit any .gitignore files that I have in my source tree. This is even after I’ve checked out the SVN repository locally (using SVN), set the svn:ignore property (recursively, […]

git svn dcommit does not find changes and reset head

I have a big problem with git–svn: I need to just push my git repo to a svn server, so I made the following svn mkdir –parents http://host/path/to/repo/{trunk,tags,branches} \ -m “Standard layout for $project” git svn init -s http://host/path/to/repo/ git svn fetch git rebase trunk master git svn dcommit This worked great and everything is […]

sysopen permission denied

I’m trying to fix an intermittent bug in git-svn. The problem is happening in Windows XP only, with both Cygwin git (perl v5.10.1) and msysGit (perl v5.8.8). With any operation that involves a fetch, I’m able to get partway through and then the operation dies with a message similar to Couldn’t open .git/svn/refs/remotes/trunk/.rev_map.cc05479a-e8ea-436f-8d71-e07493b7796c.lock: Device or […]

git multiple repository management

I am working on a project where we manage external libs/headers and qa with git. Here is what every developers’ directory structure looks like: ~/dev/proj ~/dev/ext ~/dev/qa proj, ext and qa are different git repositories. Under svn, synchronization of these dirs was simple: a single update under ~/dev would update all of them recursively. With […]

git-svn clone or svn2git unexpectedly stopping

I am trying to migrate from git to svn with the following command: git svn clone –stdlayout https://my_sourcecontrol or with git2svn svn2git –notags https://sourcecontrol -v During the migration, it just stops with the following statement: W: -empty_dir: directory When I do a git branch -a I see it has imported the tags and a number […]

Unknown protocol error when using git-svn over HTTPS through a proxy server

I’ve been encountering some problems attempting to access a Subversion repository via HTTPS using git–svn. When I type git svn init –username=<my username> –trunk=https://<host>/<project>/trunk, I get the following error message: RA layer request failed: PROPFIND request failed on ‘/<project>/trunk’: PROPFIND of ‘/<project>/trunk’: SSL negotiation failed: SSL error: unknown protocol (https://<host>) at C:\Program Files (x86)\Git/libexec/git-core\git-svn line […]

restricting git svn to branches

Using git-svn it is quite beautiful to use my local git as a svn client. Unfortunately it seems not to be possible to restrict git svn to some branches? got One ‘*’ is needed in glob: ‘branches/v10’ when setting up two branches lines in gitconfig with fixed branch paths url = https://example.com/svn/reps/test fetch = trunk:refs/remotes/trunk […]

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