Git Svn

Branching

Checking out a new branch

To work on a new SVN branch, update the local repository with git-svn fetch to see the new branch.

    $ git svn fetch
    $ git branch -r
    $ git checkout -b local_branch svn_branch

Creating a new branch

Versions of git prior to version 1.6.1 do not allow you to create an SVN branch from within Git. Thereafter use git-svn branch

Deleting a stale branch

Use SVN to delete the branch

Use git to remove the stale branch

    $ git branch -D -r <branchname>

-- Frank Dean - 10 Nov 2010

Related Topics: GitTips, ClearCaseTips