Search code examples
gitgit-svn

How to push changes from Git repository to Subversion


I am trying to learn how to use GIT with SVN repository (I know SVN, but total newbie in GIT).

I have fetched the SVN repository, but I don't understand how to push back to the SVN. The command "git svn dcommit" commit all the changes done on the GIT branch, but how can I choose which files to push (stage files for SVN commit)?

I might be really missing something out because this whole concept is a bit new to me, so any explaination would be really appreciated!


Solution

  • You do git svn dcommit when your local git history on top of svn remote is what you'd like to see in svn. Normally you do more frequent local commits when working with git. You have your working directory clean before dcommitting. See basic git manuals, especially add commit rebase and stash. Please be aware that working with git-svn might require stronger git skills than with normal git remote in many but the simplest workflows.