forked from objcode/v8
-
Notifications
You must be signed in to change notification settings - Fork 1
Adding new branch
v8 edited this page Jun 17, 2011
·
1 revision
When a new branch has been added into SVN repo, a corresponding Git branch must be created and set up for tracking.
- in the SVN history, find the "version" commit that precedes branch creation, obtain its hash;
- in the Git repo, create a file in the
.git/refs/remotes/branches
with the name of the branch (say3.3
), and write the commit hash there; - in
.git/config
, add the new branch; - create a git branch for tracking:
git branch --track 3.3 refs/remotes/branches/3.3
; - erase git-svn cache:
rm -rf .git/svn
; -
git svn fetch
(will take awhile).