git-svn

Git-svn clone error: “fatal: Not a valid object name 'refs/remotes/tags/Tag With Spaces'”

蓝咒 提交于 2021-02-18 17:15:10
问题 I'm using git svn clone (git version 1.9.4.msysgit.0) to migrate a Subversion repository to Git. The Subversion repository has tags with spaces in it, which leads to fatal: Not a valid object name refs/remotes/tags/Tag With Spaces errors. According to various internet sources, this problem should have been fixed since Git 1.8.0, why am I still experiencing this? I also tried the marked answer from git-svn clone fails "fatal: Not a valid object name" which does not work either, it just changes

git svn clone specific branches and merge

不羁岁月 提交于 2021-02-17 05:27:10
问题 I am looking to migrate my codebase from svn to git. There are too many branches in my svn repo. I only wish to clone couple of branches and merge them together and push it to git. I want to avoid cloning all branches as it takes long time. How do I achieve this? After it's done, I want to periodically get update from those svn branches, merge them and update the git repo and the svn will be active for certain period of time. It would be waste of time if I have to clone it again. Is there a

Git svn clone: Is it possible to resume after error Malformed XML: no element found?

给你一囗甜甜゛ 提交于 2021-02-09 07:02:03
问题 I'm attempting to do a one-way from subversion to Git migration of a large subversion repository using git svn with the following command (IMPORTANT after the migration only Git will be used): git svn clone --no-minimize-url --trunk=/trunk/GBI --branches=/branches/GBI --tags=/tags/GBI --authors-file=authors.txt https://yyy/svn-repos/zzz/ GBI After couple of hours running, the clone process crashes with the following error: r79791 = 00349b8063f90447ea8a040751cd2a40e74b74f3 (refs/remotes/origin

Git svn clone: Is it possible to resume after error Malformed XML: no element found?

与世无争的帅哥 提交于 2021-02-09 06:58:28
问题 I'm attempting to do a one-way from subversion to Git migration of a large subversion repository using git svn with the following command (IMPORTANT after the migration only Git will be used): git svn clone --no-minimize-url --trunk=/trunk/GBI --branches=/branches/GBI --tags=/tags/GBI --authors-file=authors.txt https://yyy/svn-repos/zzz/ GBI After couple of hours running, the clone process crashes with the following error: r79791 = 00349b8063f90447ea8a040751cd2a40e74b74f3 (refs/remotes/origin

git-svn migration fatal: not a valid SHA1 update-ref refs/heads/master refs/remotes/trunk: command returned error: 128

青春壹個敷衍的年華 提交于 2021-02-06 09:59:13
问题 Trying to migrate a large but linear svn repository to git. The svn repository does not have the standard layout (trunk, branches, tags)...just one directory with the trunk. Ubuntu 12.4 LTS,git 1.7.9.5. $ git svn clone https://coawstmodel.sourcerepo.com/coawstmodel/COAWST --authors-file=../users.txt COAWST ... D WPS/metgrid/storage_module.F D WPS/metgrid/process_domain_module.F W: -empty_dir: WPS/metgrid/gridinfo_module.F W: -empty_dir: WPS/metgrid/input_module.F W: -empty_dir: WPS/metgrid

What can cause git to mess with character encoding?

北慕城南 提交于 2021-02-06 07:59:56
问题 Edit: git does not mess with character encoding. This is still here to share knowlege and avoid others making the same mistake. The context : My enterprise uses an svn repository. I'm using git-svn as a client to interact with this repository. All text files in the project are (and must be) encoded with windows default encoding (cp-....). I use git-extensions, and sometimes the command line to pilot git. What I did : During the last 3 days, I was working on a new feature, and I did a number

What can cause git to mess with character encoding?

半城伤御伤魂 提交于 2021-02-06 07:57:09
问题 Edit: git does not mess with character encoding. This is still here to share knowlege and avoid others making the same mistake. The context : My enterprise uses an svn repository. I'm using git-svn as a client to interact with this repository. All text files in the project are (and must be) encoded with windows default encoding (cp-....). I use git-extensions, and sometimes the command line to pilot git. What I did : During the last 3 days, I was working on a new feature, and I did a number

Synchronize git-svn branch with git repository

风流意气都作罢 提交于 2021-01-29 05:09:58
问题 We have a client that has SVN as version control. We have to work with their repository and they don't want to create branches for us, only the branch they deploy, so we cannot create small commits, only a big one when the feature is ready to be deployed. I've read about git-svn and I think it's almost the perfect solution. But is there a way of synchronizing locally created branches with an external repository? Both to backup and sync with other people. I mean, you have the SVN repository.

Unable to convert svn repository (without trunk) to git

对着背影说爱祢 提交于 2021-01-02 05:06:30
问题 I'm trying to convert my svn repo to git, but I'm not having much success. The repository in question does not have anything like a "trunk". The layout is the following: /home/svn/ |--- /project1/ |--- /project2/ |--- /repos/project3/ And underneath those project folders are the files. No trunk, no branches, no nothing special. At the time that was all I needed, and now it's biting me in the ass. I'm following this guide: http://john.albin.net/git/convert-subversion-to-git When I run this

Unable to convert svn repository (without trunk) to git

拟墨画扇 提交于 2021-01-02 05:05:19
问题 I'm trying to convert my svn repo to git, but I'm not having much success. The repository in question does not have anything like a "trunk". The layout is the following: /home/svn/ |--- /project1/ |--- /project2/ |--- /repos/project3/ And underneath those project folders are the files. No trunk, no branches, no nothing special. At the time that was all I needed, and now it's biting me in the ass. I'm following this guide: http://john.albin.net/git/convert-subversion-to-git When I run this