git-svn

possible to recreate svn repository from (full) git-svn clone?

邮差的信 提交于 2019-12-19 00:42:49
问题 As title, is there any way to reconstruct a svn repo from a full clone with git-svn (containing every single commit starting from r1)? Edit: I probably should add that I am looking for a practical means to do it (near-perfect copy is okay as long as it remains usable just as the original svn repository) 回答1: Yes, it's possible to create an SVN repository rather close to your git-svn repository (even restoring svn:mergeinfo from Git merge commits and svn:ignore from .gitignore). The steps to

Is git svn compatible with git subtree?

我与影子孤独终老i 提交于 2019-12-18 15:29:40
问题 Now that git subtree has been merged into the core git distribution (its also on Msysgit as of 1.8.0), does anyone know if git svn works with git subtree? Note: I am not talking about the subtree merge strategy, but about this. Git submodules cannot be used directly when you are using git svn. Instead, it requires another level of indirection. In addition, the git subtree workflow is more convenient when you're tracking third party respositories, which is something that happens when you use

Can't find git-svn on Mac OS X Leopard after installing via MacPorts

社会主义新天地 提交于 2019-12-18 14:45:11
问题 Okay people, I'm sure someone has had this issue and can help me out. I'm trying to get git-svn working on OSX Leopard (10.5.6). Using MacPorts I've run the install thus : sudo port install git-core +svn However, git-svn has not been installed and is not available. No errors came up during the lengthy dependency installation and so I'm at a loss. Thoughts would be greatly appreciated. 回答1: On my install at least, I have to invoke it as git svn <cmd> instead of git-svn <cmd> . 回答2: That's the

RA layer request failed while git-svn fetch

浪尽此生 提交于 2019-12-18 14:43:27
问题 I use git svn to sync with the subversion repos: $ mkdir prj && cd prj $ git svn init http://url/to/repos/branches/experimental $ git svn fetch and got the error message: RA layer request failed: OPTIONS of 'http://url/to/repos/branches/experimental': Could not read status line: connection was closed by proxy server (http://url/to/repos) at /usr/bin/git-svn line 1352 Why and how can I fix this? 回答1: I had the same issue when accessing a SVN repo through a proxy . The solution for me was to

Git-SVN with svn.pushmergeinfo: how to avoid self-referencing mergeinfo lines

北战南征 提交于 2019-12-18 12:26:13
问题 In recent versions of git, the configuration svn.pushmergeinfo was introduced: config key: svn.pushmergeinfo This option will cause git-svn to attempt to automatically populate the svn:mergeinfo property in the SVN repository when possible. Currently, this can only be done when dcommitting non-fast-forward merges where all parents but the first have already been pushed into SVN. We're using this to have a mixed environment where some developers use SVN and some use Git-SVN. This works great

How do I show the SVN revision number in git log?

余生颓废 提交于 2019-12-18 10:49:11
问题 I'm customizing my git log to be all in 1 line. Specifically, I added the following alias: lg = log --graph --pretty=format:'%Cred%h%Creset - %C(yellow)%an%Creset - %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative So, when I run git lg , I see the following: * 41a49ad - zain - commit 1 message here (3 hours ago) * 6087812 - zain - commit 2 message here (5 hours ago) * 74842dd - zain - commit 3 message here (6 hours ago) However, I want to add the SVN revision number in there too, so it

Convert SVN Subdirectory to Git

时间秒杀一切 提交于 2019-12-18 10:34:20
问题 I would like to ditch SVN for Git. My current SVN repository setup has projects under trunk ( /trunk/projecta , /trunk/projectb , etc. with tags and branches at /tags/projecta-1.0 , etc.). I would like to create distinct Git repos for each of these projects by pulling them out of SVN using git-svn. I've successfully pulled the entire SVN repo down to a local Git repo but all of the projects exist in the same Git repo now. Is it possible to pull them apart at this point? 回答1: This is tricky.

Easiest way to replay commits on new git repository

青春壹個敷衍的年華 提交于 2019-12-18 10:16:17
问题 I've been using git-svn, and recently, I've been getting errors when trying to commit (I think this is due to a bug in libneon, but this is beyond the scope of this question). The solution has been to re-clone my git repository using git svn clone . However, I have changes on the master branch in my old git repository that I was not able to commit to svn using git svn dcommit . I'd like to replay these changes on the new repository cloned with git svn. I think I could probably export a patch

Git SVN error: a Git process crashed in the repository earlier

我是研究僧i 提交于 2019-12-18 10:13:16
问题 I was just trying to commit changes to the Git master. From what I have read, it seems that the idea is to delete the lock file. The message says: make sure no other Git processes are running and remove the file manually Perhaps someone knows, which file to remove and how to remove? 回答1: The file in question is likely .git/index.lock and it should be safe to just remove it if you have no other git processes running. Make sure a git-svn command isn't hanging. PS My usual approach to fixing git

git-svn clone fails unexpectedly

孤街浪徒 提交于 2019-12-18 05:00:10
问题 I run the following: git svn clone --stdlayout --no-metadata -A users.txt -r 3760:4662 svn://kumquat.geoplan.ufl.edu/Projects/S4-Geocoding S4-Geocoding-SVN.git It begins running and runs fine for a while, then bombs: ... M S4.Geocoding.Client/App.xaml.cs M S4.Geocoding.Client/MainPage.xaml.cs M S4.Geocoding.Client/CodingPage.xaml M S4.Geocoding.Client/CodingPage.xaml.cs r4163 = 498dad8ce3730390393fc13b183fdbbff7108e6b (refs/remotes/trunk) M S4.Geocoding.Client/CodingPage.xaml.cs r4164 =