git-svn

Importing a Subversion repository with a non-standard layout into Git

南笙酒味 提交于 2020-01-23 10:13:31
问题 I'm trying to (permanently) migrate my group's Subversion repository to Git, but I'm running onto problems trying to clean up its non-standard directory structure. Some of the project's content is contained in trunk and branches folders, but not all of it. The project on Subversion is laid out like this: project/trunk/ project/branches/feature_1 project/branches/feature_2 project/libraries project/crontab ... After importing, I want the Git repository to be laid out like so: project/html #

How to use git-svn with svn+ssh url

江枫思渺然 提交于 2020-01-22 16:26:05
问题 I like to use in cygwin the git svn clone command with our company svn repository. The url for this is svn+ssh://svn.<url>.com/repo under this I can see with e.g. eclipse the repository with trunk/tags/branches Running git svn clone svn+ssh://svn.<url>.com/repo No such file or directory: Unable to connect to a repository at URL 'svn+ssh://svn..com/repo': Error in child process: exec of 'ssh' failed: No such file or directory at /usr/lib/git-core/git-svn line 2299 Any one can help me what and

How can I avoid an accidental dcommit from a local branch

北慕城南 提交于 2020-01-19 12:42:19
问题 Sometimes, I create local branches in git, and I'd like to get a warning message when I try to dcommit from them. How can I prevent myself from accidentally dcommiting from a local branch? 回答1: An alternative to pre-commit hooks, if you're using Linux (or Git bash or Cygwin or similar), is to wrap git in a shell helper function. Add the below to your ~/.bashrc (for bash, Git bash) or ~/.zshrc (for zsh) file, or whatever the equivalent is for your shell: real_git=$(which git) function git { if

how to use svn dcommit for svn-all-fast-export Qt script

喜欢而已 提交于 2020-01-16 19:43:09
问题 I have imported the subversion repository to Git repository by svn-all-fast-export. However, after imported the project, I don't know the way to keep maintain reposirory synchonize with the SVN which still have some users using. I cannot find the way to use git svn fetch or git svn dcommit after done the imported. 回答1: SVN2Git is for 1-shot conversion. For SVN <-> Git synchronization on the server, you need to setup any SVN-Git gateway like SubGit. To do that run on the server $ subgit

git svn: password for svn is not stored

拜拜、爱过 提交于 2020-01-14 08:46:07
问题 I'm using git against a central remote svn repository using 'git-svn'. The SVN repository uses https with a self-signed certificate. Everything works fine, with one nasty exception. As long as I use directly with svn, the password is remembered, so it has to by typed only on the first command. When using git-svn operations (e.g. dcommit, rebase), the password is no longer remembered and manual input is required. After a git-svn oparation, direct svn commands do no longer remember the password

git svn clone died of signal 11 on OSX

左心房为你撑大大i 提交于 2020-01-14 07:04:06
问题 I'm trying to migrate a project from svn to git. I was using the osx svn package, but I also tried installing with homebrew. I keep getting this same error. git svn clone http://myserver/myrepo error: git-svn died of signal 11 Version information: git --version git version 2.2.1 svn --version svn, version 1.7.17 (r1591372) compiled Sep 18 2014, 13:06:44 I'm running Yosemite. 回答1: git svn executes git-svn which is a Perl program which uses bindings to libsvn and those bindings are touchy. If

git svn clone died of signal 11 on OSX

房东的猫 提交于 2020-01-14 07:04:05
问题 I'm trying to migrate a project from svn to git. I was using the osx svn package, but I also tried installing with homebrew. I keep getting this same error. git svn clone http://myserver/myrepo error: git-svn died of signal 11 Version information: git --version git version 2.2.1 svn --version svn, version 1.7.17 (r1591372) compiled Sep 18 2014, 13:06:44 I'm running Yosemite. 回答1: git svn executes git-svn which is a Perl program which uses bindings to libsvn and those bindings are touchy. If

Convert non standard svn to git

北城以北 提交于 2020-01-13 03:45:06
问题 We've got a non-standard svn setup which looks like this: Root |----->Trunk | |---->Projects | | |---> Project 1 | | |---> Project 2 | | |---> Project 3 | |---->Libraries | | |---> Library 1 | | |---> Library 2 |----->Tags | |---->Projects | | |---> Project 1 | | | |----> 1.0.0.0 | | | |----> 1.0.0.1 | | |---> Project 2 | | | |----> 1.0.0.2 | | | |----> 1.0.0.3 | |---->Libraries | | |---> Library 1 | | | |----> 1.0.0.0 | | | |----> 1.0.0.1 | | |---> Library 2 | | | |----> 1.0.0.0 | | | |---->

msysgit broken from 1.7.11?

心已入冬 提交于 2020-01-12 06:55:12
问题 After updating msysgit to 1.7.11, I get the following error when calling git-svn: $ git svn rebase Can't locate Git/SVN/Editor.pm in @INC (@INC contains: /lib /usr/lib/perl5/5.8.8/msys /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/msys /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at C:\Program Files\Git/libexec/git-core\git-svn line 81. BEGIN failed--compilation aborted at C:\Program Files\Git/libexec/git-core\git-svn line 81. Does anyone else experience this problems? 回答1

Create User & Access Rules Github for Windows

橙三吉。 提交于 2020-01-11 12:57:11
问题 I've just installed Git using http://windows.github.com/ It seems to be installed correctly but I'm unable to create new users and access control setup to access repository. I have tried to look into the docs, but doesn't contains anything like that. I'm not sure whether Github for windows have these or not. What do you suggest to use to solve this kind of situation.. I need to setup Git with user management & at least very basic access control on repository), is it possible with Git or not?