How can I re-get revisions of a new specified branch using git-svn

I extracted the entire repository from SVN through revision 15000. I realized that I have an additional branch hidden in another place. Is there a way to update the .git / config file with the location of this new branch and re-select only the changes related to this branch?

+6
git git-svn
source share
2 answers

You can add another branches entry to the svn-remote section of your .git/config file. After that, starting git svn fetch should output additional revisions.


If I understand correctly, you can force git-svn to rescan old versions of branches by removing (or changing) the max-branchesRev from .git/svn/.metadata and running git svn fetch again. If you change the line instead of deleting it, you will want to install it on the version earlier than when your branch was created. Then it will rescan the branches for all changes after that.


I probably should have first with git svn reset instead of messing with .git/svn/.metadata . If the following does not work, then I have no ideas. :)

 # Find the svn revision git knows about that just previous (or close to) # the revision which created the branch $ git svn reset -r $foundSvnRev $ git svn fetch $ git reset --hard $remoteBranch 

Then you can use git svn as usual.

+11
source share

Assuming this is just another place in the same repository, you can simply specify through the --branch option. He will ignore everything that has already been found.

If this is another SVN repository, you can configure another remote SVN and select from it.

0
source share

All Articles