git-svn

SVN to GitHub migration

♀尐吖头ヾ 提交于 2019-12-20 07:40:24
问题 I have to migrate multiple directories from SVN trunk to one single GitHub repository. I'm able to clone single directory at a time by using this command: git svn clone "https://svn repo url" How to clone multiple directories with a single command from svn trunk? What is the best way to do migration? 回答1: In the hard way officil svn to git migration you have to run a bunch of command to make the conversion, basically transforming trunk to master, svn revision's in commit's (git style) and svn

git svn dcommit committing wrong file?

戏子无情 提交于 2019-12-20 07:30:22
问题 Ok, I have a bit of a convoluted setup, where I use git version 1.7.9.5, and have a git repository, which on the git side is a clone of a bare repo; and on the svn side, should be a clone of a remote SVN repository. On the other hand, there are no branches, and everything is done in master. The remote repository was offline for a while; it just came back, and I seemingly managed to upload all outstanding commits via git svn dcommit . The problem is now, I tried making a new change/commit

Pushing an existing svn repository to git

梦想与她 提交于 2019-12-20 04:24:52
问题 I'm using SVN and I'm not planning to migrate to Git for now. I'd like to try out AppHarbor but currently you must use Git to deploy code to AppHarbor. I'd like to continue using SVN but push to AppHarbor's git repository from time to time. Is there an easy way to achieve this? 回答1: You can create a git clone of your SVN repository with: git svn clone --stdlayout <URL-OF-YOUR-SVN-REPOSITORY> ... and keep that up to date by periodically running: git svn rebase ... in the directory created by

git-svn-id is missing from some commits

可紊 提交于 2019-12-19 09:38:33
问题 I have an old SVN repository that I checked out using git-svn in order to work on it and push to Heroku. I was doing a pretty standard git push heroku master , git svn rebase , git svn dcommit dance and things were fine. However, recently I've been doing a fair bit of git work and hadn't done a git svn rebase in a while. Now when I try to do a rebase it fails because of merge conflicts, despite me being the only person committing to the repo and only working on master. Figuring that it might

Git svn does not use the svn credentials

China☆狼群 提交于 2019-12-19 09:26:38
问题 I try to clone a path from our svn repository. The repository is secured with passwords. I have found some subversion directories on my Windows 10 System and created symlinks for them. So it is only one directory. I opened the git-bash and started the command svn checkout --username myuser --password mypassword svn://myserver/myrepository/myproject/trunk SVN created in the auth/svn.simple directory a file with my credentials. The file starts with K 8 passtype V 8 wincrypt K 8 password ... The

git svn - Unrecognized URL scheme error

冷暖自知 提交于 2019-12-19 05:14:10
问题 I'm getting the following error on attempt to clone svn rep with git svn: eugene$ git svn clone https://my.site/svn/ here Initialized empty Git repository in /Users/eugene/Documents/workspace/test/here/.git/ Bad URL passed to RA layer: Unrecognized URL scheme for 'https://my.site/svn' at /usr/local/git/lib/perl5/site_perl/Git/SVN.pm line 148. svn checkout https://my.site/svn/ works just fine. I've re-run cpan SVN::Core and install finished fine, but still getting the error. 回答1: Apparently

Git commit all files

六眼飞鱼酱① 提交于 2019-12-19 03:46:30
问题 How can I commit the full project again? (I want upload all of my file upload again to heroku) 回答1: git add . git commit -a not completely sure what you want, but to add all files and commit all changes, use this 回答2: I want readd all files, because I think my git slug is corrupted I'm not sure what you mean by corrupted -- Git uses SHA1 hashes, and it's very very hard for things to break. You could do find | xargs touch just in case your mtimes got messed up, but after that, git status will

Svn -> git migration with several trunk/branches/tags

半世苍凉 提交于 2019-12-19 03:45:14
问题 I have a single SVN repository with the following current structure: project1 branches trunk tags project2 branches trunk tags which originally had this structure: project branches trunk proj1 proj2 tags That is, the project was split into two separate "subrepositories" (or whatever you want to call that) Is there any way to migrate this to git without losing history ? Would svn2git be better that git-svn for this scenario? Is there any other migration tool? EDIT : I tried git svn clone as

Clone multiple SVN projects with git-svn

删除回忆录丶 提交于 2019-12-19 03:09:56
问题 I have a large Java app that is split up into multiple projects. Each project has its own folder in a Subversion repository like so: AccountingCore trunk branches tags Common trunk branches tags WebCommon trunk branches tags etc... I want to start using git-svn locally instead of subversion. This may be a stupid question, but is there a way to checkout all the projects in the repository at once (including branches and all) instead checking out each project individually? Thanks, Tony 回答1: If

git-svn clone or svn2git unexpectedly stopping

谁说胖子不能爱 提交于 2019-12-19 03:00:09
问题 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 of branches that were deleted some time ago. Also, it has not imported any of the existing branches only the ones that were deleted some time ago. Can anyone