git-svn

Git is really slow for 100,000 objects. Any fixes?

允我心安 提交于 2019-12-17 06:28:12
问题 I have a "fresh" git-svn repo (11.13 GB) that has over a 100,000 objects in it. I have preformed git fsck git gc on the repo after the initial checkout. I then tried to do a git status The time it takes to do a git status is anywhere from 2m25.578s and 2m53.901s I tested git status by issuing the command time git status 5 times and all of the times ran between the two times listed above. I am doing this on a Mac OS X, locally not through a VM. There is no way it should be taking this long.

How do I tell git-svn about a remote branch created after I fetched the repo?

主宰稳场 提交于 2019-12-17 02:26:12
问题 I'm using git-svn to work against my company's central Subversion repository. We've recently created a new feature branch in the central repo. How do I tell Git about it? When I run git branch -r I can only see the branches that existed when I ran fetch against the Subversion repo to initialize my Git repo? 回答1: You can manually add the remote branch, git config --add svn-remote.newbranch.url https://svn/path_to_newbranch/ git config --add svn-remote.newbranch.fetch :refs/remotes/newbranch

git-svn: reset tracking for master

允我心安 提交于 2019-12-13 16:51:27
问题 I'm using git-svn to work with an SVN repository. My working copies have been created using git svn clone -s http://foo.bar/myproject so that my working copy follows the default directory scheme for SVN (trunk, tags, branches). Recently I've been working on a branch which was created using git-svn branch myremotebranch and checked-out using git checkout --track -b mybranch myremotebranch . I needed to work from multiple locations, so from the branch I git-svn dcommit -ed files to the SVN

Working with GIT, but export master branch to SVN - branch broken

浪子不回头ぞ 提交于 2019-12-13 16:35:54
问题 I'm working with GIT while developing project, but also I need to update SVN repository that was created for this reason with master branch once a week. So, would like to export GIT master branch to empty SVN repository. First of all I need to tell GIT about SVN. I do git svn init http://some/remote/svn/project/ Ok, I got lines in gitconfig [svn-remote "svn"] url = http://some/remote/svn/project/ fetch = :refs/remotes/git-svn Now I suppose I can use git svn functionality and I do git svn log

Removing unwanted files from history including all refs with filter-branch

旧城冷巷雨未停 提交于 2019-12-13 11:51:13
问题 I recently have cloned an SVN repository which used to have a few binaries in it, which are not needed any longer. Unfortunately, I have already pushed it to Github with the binaries inlcuded. I now want to remove these using 'git filter-branch' but I am facing some problems when it comes to tags and branches. Basically, I have created a simple shell script to remove a list of files which have been determined by the following command: git rev-list --objects --all | grep .jar > files.txt The

On OSX using sourcetree / git-svn getting “Can't locate SVN/Core.pm in @INC ”

与世无争的帅哥 提交于 2019-12-13 11:38:04
问题 I'm using OSX and want get a svn repo into a local git repo using sourcetree . When I add a bookmark using sourcetree using SVN URL, thus sourcetree knows it's a SVN url, but when I click the clone button, it reports an error like following: Can't locate SVN/Core.pm in @INC (@INC contains: /usr/local/git/lib/perl5/site_perl /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12

Error after cloning 50% of a 50k+ commit svn repository to git

允我心安 提交于 2019-12-13 09:36:25
问题 When trying to migrate an svn repository with 50k+ commits to git using the following commands: git init git svn init https://10.10.10.10:8443/svn/rep --stdlayout git svn fetch --fetch-all --log-window-size=1000 --authors-file=..\authors-transform.txt the following error is reported: Connection reset by peer: Error running context: Connection reset by peer at /mingw64/share/perl5/site_perl/Git/SVN/Ra.pm line 312. I've already tried to fetch again, but the error persists. git: 2.12.12 svn: 1.8

git-svn cannot rebase because of files that exist only in git repository, not in svn

感情迁移 提交于 2019-12-13 03:22:29
问题 When I do a git svn rebase, it tells me that it had a CONFLICT (add/add) in a file that's not even in the SVN repository, I added it after my initial git clone. When I fire up meld, my favorite merge tool, I see two versions of the file, one more recent than the other. So I resolve the merge conflict by taking all the changes for the more recent version, and do a 'git add' on the file. Git status does not show the change staged for commit, and git rebase --continue says: No changes - did you

race conditions if two clients git svn rebase and git push to the same git repo?

主宰稳场 提交于 2019-12-13 01:57:02
问题 Is svn-rebasing-and-pushing from multiple clients to the same Git repo vulnerable to race conditions if both clients try to svn-rebase and push concurrently? Here's more info: I'm setting up a GitHub-hosted mirror of an SVN project. To do the mirroring, I'll run this cron job every few minutes (per this article): git svn rebase git.exe push origin master For redundancy, I'd like to have another server running the same cron job. But will this break in the face of race conditions like these?

Can I add a string to my commit messages before sending them to SVN in git-svn?

烈酒焚心 提交于 2019-12-13 00:13:51
问题 My org has some silly requirements that you must put "admin" at the end of every SVN commit message in order to get around some decision made by the SVN gatekeepers that every commit should have an associated bug number. (Everyone on the team bypasses this requirement similarly.) I'm trying to use git SVN, but I'd like to avoid putting "admin" at the end of my frequent git-svn commits. Is there a way to have git SVN do this for me? 回答1: You can set up a git commit hook, so that when you