git-svn

Can't invoke git-svn from command line

99封情书 提交于 2019-12-12 08:17:44
问题 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 this? Thank You. 回答1: The (new) interface to run git-svn is actually: $ git svn <command> [options] [arguments] (notice the lack of - ) 回答2: sudo apt-get install git-svn

Recover from Git-Svn clone without --stdlayout

拟墨画扇 提交于 2019-12-12 07:59:48
问题 I've accidentally cloned a Subversion repository without adding the --stdlayout argument, giving me something like: $ git svn clone --prefix=svn/ svn+ssh://code.example.com/project [two weeks later] $ git branch -a * master remotes/svn/git-svn With the svn/git-svn layout being something like: branches/* tags/* trunk/* Any way to recover from this? 回答1: That depends: do you want to be able to interoperate with subversion in the future? If not, consider manually creating a branch in git for

git svn dcommit fails because of assertion error “svn_fspath__is_canonical(child_fspath)” (cygwin)

こ雲淡風輕ζ 提交于 2019-12-12 07:10:54
问题 I hope anybody can help me. When I try to push my local git branch to the svn server this will always result into this error: $ git svn dcommit Committing to http://.../Dev_Stream/01_workspace ... C path/to/file/AbstractSystemThread.java => other/path/to/file/Thread/AbstractThread.java assertion "svn_fspath__is_canonical(child_fspath)" failed: file "/usr/src/subversion/subversion-1.8.0-1/src/subversion-1.8.0/subversion/libsvn_subr/dirent_uri.c", line 2502, function: svn_fspath__skip_ancestor

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

狂风中的少年 提交于 2019-12-12 05:25:01
问题 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 command I am currently using is: git.exe svn clone "https://mqmanager.svn.sourceforge.net/svnroot/mqmanager" "C:\src\mqmanager" -T trunk -b branches -t tags Now,

merge from svn to git, commit by commit

 ̄綄美尐妖づ 提交于 2019-12-12 04:48:22
问题 Our company has two repositories, svn repository(trunk) used for development of one product and git repository(master) used for deployment of several products(teams). Our team wants to merge from svn subdirectory "trunk/web" to git subdirectory "master/product-a/web-dev". Those repositories have different source codes with a different tree structure, but two subdirectories we want to merge have almost same source codes inside. Also, they're not linked in any way, and we need to merge manually

dcommit only a certain local (i.e. git) branch with git-svn

好久不见. 提交于 2019-12-12 04:03:21
问题 I am developing using git but I have to publish via svn . That's why I've set up git-svn (by git svn clone ). My usual workflow is like this: git svn rebase # get local git repository up-to-date git add file # add some code git commit # commit code to local git repository git svn dcommit # push changes from local git repository to public svn repository So far this works fine. However, I would like to create a branch (say secret ) in my local git repository that is completely ignored by git

Incremental Migration from SVN to Git

我是研究僧i 提交于 2019-12-12 01:27:59
问题 Consider my below scenario : Suppose my svn repository contains 100 revisions , which has been migrated to Git Repository (So my Git contains the 100 revisions). Now my svn repository got updated, say with 5 more revisions hence it has 105 revisions . How do i migrate only the revisions 101 t0 105 to my GIT repository? The main challenges I have : I dont want to sync both SVN and Git.(SVN will be decommisioned soon) I need to migrate the Revisions with its history. I tried following up with

synch two svn repos through GIT

你离开我真会死。 提交于 2019-12-11 18:34:28
问题 Which is the best approach to keep two SVN repos in synch with git? One is the "master" the other one is only updated with the info from the master and nobody plans to check-in into the "slave" SVN repo. I don't have access to the SVN servers itself means I should find a solution only as "SVN client" and I don't have access to svn admin tools or similar. 1st approach: one git repos pulling from one svn repo and pushing to the other SVN repo. How could that be reached if this approach seems to

git repositiory adding files

会有一股神秘感。 提交于 2019-12-11 16:17:10
问题 I had creating git repository Test on git and installed git on my windows machine and Global setup: Download and install Git git config --global user.name "Rahul Mehta" // i put here my name git config --global user.email rahul23134654@gmail.com Next steps: mkdir Test //done cd Test // .. git init // done touch README // git add README // git commit -m 'first commit' // running tthi give me erro git remote add origin git@github.com:rahul23134/Test.git git push origin master Running after

What dependencies does running “git svn” need to have installed in order to run correctly?

怎甘沉沦 提交于 2019-12-11 14:09:23
问题 I've been struggling with getting a Subversion to Git migration to work on a corporate-IT managed Red Hat 6.4 Linux workstation. Our IT organization provides several versions of most of the OTS packages they think we'll need by mounting them under an "/apps" directory on our local workstations. I do not have root or sudo on my box , or this would probably be easier. Following some blog posts (such as this one), and trying to set up my PATH and LD_LIBRARY_PATH correclty, I've gotten to the