Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The process for altering SVN branches with git-svn involves the following steps:

  1. Clone the SVN repository using git-svn:
git svn clone <svn-repo-url>
  1. Fetch the latest changes from SVN:
git svn fetch
  1. Create a new local branch to track the SVN branch:
git branch <local-branch-name> <svn-branch-name>
  1. Switch to the new local branch:
git checkout <local-branch-name>
  1. Make changes to the local branch, commit them, and push them to SVN:
git commit -m "<commit-message>"
git svn dcommit
  1. Fetch the latest changes from SVN again:
git svn fetch
  1. Rebase the local branch with the changes from SVN:
git rebase svn/trunk
  1. Resolve any merge conflicts that may arise during the rebase. Once conflicts are resolved, continue with the rebase:
git rebase --continue
  1. Finally, push the changes to SVN:
git svn dcommit

These steps can be repeated for multiple SVN branches as needed.