git svn imported repository using svn branches

I've cloned a replicated svn repository (svnsync to local file system). All the branches etc. are now available in git. Now i would like to start working on svn branches

git checkout remotes/B_XYZ

and doing some commits via git. Now i want to change to a different SVN branch via

git checkout remotes/B_ABC

and doing some changes as well.

And now the final question is: Is it possible to commit the changes i made on the branches (in git) to the original Subversion repository back on the appropriate branches?

-------------Problems Reply------------

Is git svn dcommit not working for you?

After some experiments i figured out how to do the commit to the new repository which is not the replicated one.

git svn dcommit --commit-url URL/branches/BRANCHNAME

With the command above i can commit the changes i made in git into the new svn repository.

It is possible if you install SubGit into your SVN repository and use it instead of git-svn. It will create a pure Git repository (not git-svn repository!) for you such that any push to it will result into SVN commit and vice-versa (triggered by hooks). Any new branch push will create a branch in SVN, any tag push will create a tag.

The only restriction is that you should have an access to your SVN repostiory, but is seem it's exactly your case.

To do that run

$ subgit install path/to/svn/repostiory

The linked Git repository will be in path/to/svn/repostiory/.git.

Category:svn Views:1 Time:2010-08-24
Tags: svn git git svn

Related post

  • how to import repository from SVN and override existing one in bitbucket? 2012-03-10

    I had a repository in SVN. I imported it to bitbucket. I want to reimport it and override the already created repository in bitbucket. Can I do so? Or have to delete and create a new destination repository ? --------------Solutions------------- You c

  • Unable to svn import but can svn checkout 2011-11-17

    So On Windows, my svn repository is at C:\Code\SVN and contains a number of projects. Have an svnserver running using svnserve --root c:\code\svn --daemon I can check out existing projects using svn checkout svn://localhost/projectname But when I try

  • Shortcut equivalent for a git pull from repository to current branch 2011-12-01

    In git I'm using the pull command to merge from a different repository, for example: git pull ../mortoray-main/ mortoray-main This will fetch and merge the mortoray-main branch from the other repository into the current branch in the current reposito

  • How do I make git-svn use a particular svn branch as the remote repository? 2008-10-10

    A word of warning: I'm a n00b to git in general. My team uses feature branches in svn, and I'd like to use git-svn to track my work on a particular feature branch. I've been (roughly) following Andy Delcambre's post to set up my local git repo, but t

  • Using git svn clone on a subversion repository with inconsistent branches 2013-07-11

    My question looks at first sight similar to others (notably Cloning a Non-Standard Svn Repository with Git-Svn ) but I have one additional problem. I am also aware of http://john.albin.net/git/git-svn-migrate . Some of the branches that were created

  • Can I make git-svn import a Subversion repository which itself contains git repositories 2009-06-04

    I have a project in SVN which has a plugins folder. Several of the plugins folders are git repositories -- I added them to my plugins folder using git clone. This has been working well for me but now I'm looking to migrate my SVN repository to git us

  • Pushing an existing git repository to SVN 2009-03-19

    I've been doing all my work in Git and pushing to GitHub. I've been very happy with both the software and the site and I have no wish to change my working practices at this point. My PhD adviser is asking all students to keep their work in an SVN rep

  • Git import/export into SVN as a regular workflow? 2009-12-05

    Randal Schwartz says that he uses Git's SVN import/export feature when he has to interact with SVN repositories. He pulls the project from SVN, does all his local edits/saves with Git then once done pushes the changes back to the SVN repository. Is t

  • Can Git-svn be used on large, branched repositories? 2010-01-08

    I am trying to use git as a frontend to a svn repository in order to be able to use git's nice features like simple branching, stashing etc. The problem is that the SVN repository is quite large (8,000 revs) and contains lots of branches and tags (ol

  • Git-svn: managing mutiple remote tracking branchs 2010-06-23

    Currently I'm trying out exporting Git repository history into svn via git-svn and using grafts method. As of now, I have successfully export the git history into svn. But because of the grafting method and that my git repository is cloned from the a

  • Export git repository to svn 2010-08-09

    cloning an svn repository into git is easy with git-svn. However, I need to do it the other way round. I have a git repository lying around and want to import it into an empty (except from trunk, branches and tags folders) keeping all the commit info

  • How can I make git-svn get rid of remote branches that don't exist anymore? 2010-12-08

    Is there a handy way to get my local git repo to forget about remote branches that have been deleted? git svn fetch doesn't "re-sync everything" like I hoped it might. My local repo was set up with using an import of the standard svn repo layout (git

  • How to synchronize a GIT repository with SVN? 2011-01-08

    I am planning to make a fork of an open-source project, but I want to switch to GIT. The project is using SVN, but there is no TRAC available, so I can't just download changesets without having SVN on my PC (not to mention svn diff doesn't allow bina

  • Using git-svn to merge a svn branch back into trunk and trunk back into the branch 2010-01-29

    So I'm using git and interacting with an svn repo. I have a svn TRUNK that looks like this: A-B-C-D And a svn bug_fixes branch that branches off at commit B or C: -c-d-e-f-g-h-i Now I need to get the cdefghi commits that are in my svn branch back int

  • Git-svn: create & push a new branch/tag? 2010-03-22

    After cloning an SVN repository using git-svn with the -s option (git svn clone http://server/repo -s), how does one create a branch or tag and have pushed to the relevant branch/tag directory in the repository when dcommiting? For instance; if I wer

  • Import/commit to svn branch from a different codebase 2010-04-30

    I am trying to migrate to svn from a not-so-famous version control system (lets call it nsfvc). svn trunk was created some time ago from nsfvc's trunk. There is an active branch in nsfvc that I have to import to svn branch. The diff between nsfvc's t

  • RW Access git repository using svn (git-svnserver)? 2010-09-07

    Is there a program that does what git-svn does, but in a situation where the repository on the server is git, and the developer uses svn? I know that github.com allows svn access to the git repositories they host, but it doesn't look like they've rel

  • git svn gatekeeper repository 2010-10-02

    I have beem using git for quite some time now, mainly git-svn. Now I want to convince my colleagues to switch from svn to git. But unfortunaly the precondition is that the svn repository keeps on living quite some time. So I searched for an solution

  • SourceForge: Mirror GIT repository to SVN 2011-01-24

    I have a project developing using GIT. I need to make a SVN mirror only repository for users that didn't like GIT. I googled some instructions about it but all of them failed. Part of them written for Linux - I have Windows. Part of them suggest to c

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.080 (s). 11 q(s)