Sunday, June 10, 2012

Notes Using git svn

Git is one thing and SubVersion (SVN) is another thing. Using git while working on an svn repository is yet another thing. Now here are my notes:

Go to master branch:

git checkout master

Get remote changes:

git svn fetch

Apply remote changes to master:

git svn rebase

Create new branch named dev:

git branch dev

Go to dev branch:

git checkout dev

Update dev branch from changes in master:

git rebase master dev

Update master branch from changes in dev:

git rebase dev master

Commit to svn repository:

git svn dcommit

No comments:

Post a Comment