Git and git-svn and multiple branches and push and fetch

A git svn clonewith --stdlayoutget multiple branches if the original SVN repo has multiple branches (and tags).

I want to push them all into another git repo. It seems to have git svn clonegotten the whole story for all versions. Is it a matter of providing the best instructions for git push?

Here, perhaps my erroneous intention of the workflow.

  • run git svn to clone svn into a private repo.
  • click on a common repo driven by gitosis.
  • create a common work thread
  • various people controlled by gitosis make private branches and merge into a common working branch.
  • I pull from the general repo back to the one that was created in step 1, merged with trunk and dcommit.

Here is the output git branch -aafter starting git svn clone.

/Users/benson/x/tsk/tsk_git_svn git branch -a
* master
  remotes/origin/master
  remotes/sleuthkit-3.0
  remotes/sleuthkit-3.1
  remotes/tags/sleuthkit-3.0.0
  remotes/tags/sleuthkit-3.0.1
  remotes/tags/sleuthkit-3.1.0
  remotes/tags/sleuthkit-3.1.0b1
  remotes/tags/sleuthkit-3.1.1
  remotes/tags/sleuthkit-3.1.2
  remotes/tags/sleuthkit-3.1.3
  remotes/tags/sleuthkit-3.1.3b1
  remotes/tags/sleuthkit-3.2.0b1
  remotes/tags/sleuthkit-3.2.0b2
  remotes/trunk
+3
2

git push --mirror, git :

git push:

--mirror

, ref push, , refs refs/ ( , refs/heads/, refs/remotes/ refs/tags/), .
, , .

svn2git ( svn), "" .

+2

SVN, :

$ subgit install path/to/svn/repository
$ cd path/to/svn/repository
$ git push --all <target Git repository>

, Git , ( Git init --bare)

0

Source: https://habr.com/ru/post/1767888/


All Articles