Track a branch in bare git-svn

When I run this command:

git --git-dir=firebird.git branch -a

This is my conclusion:

  B1_5_Release
  B2_0_Release
  B2_1_Release
  B2_5_Release
* master
  remotes/B1_5_Release
  remotes/B2_0_Release
  remotes/B2_1_Release
  remotes/B2_5_Release
  remotes/B3_0_Release
  remotes/origin/B1_5_Release
  remotes/origin/B2_0_Release
  remotes/origin/B2_1_Release
  remotes/origin/B2_5_Release
  remotes/trunk

A B3_0_Releasebranch was created in Subversion after this git-svn tree. I have no B3_0_Releasetracking remotes/B3_0_Release, or something like that. This is an open repository, so I cannot run "git checkout -b ...".

How to add a new branch to this empty repository?

+4
source share
1 answer

The easiest way to create a branch in git repository is git branch <branch_name> [<where to branch at>], which will also work for bare repositories, in your case

git --git-dir=firebird.git branch B3_0_Release remotes/B3_0_Release

, svn upstream (, ).

+3

All Articles