How do you push your commits to an SVN repositor?
Once you have checked out a SVN repository with git-svn, and you do some work, how do you push 开发者_StackOverflow中文版your commits to the SVN repository?
You can push them back to your SVN repo with git svn dcommit
Commit each diff from a specified head directly to the SVN repository, and then rebase or reset (depending on whether or not there is a diff between SVN and head).
This will create a revision in SVN for each commit in git.
It is also possible to make just one SVN revision when pushing back.
Note:
It is recommended that you run git svn fetch and rebase (not pull or merge) your commits against the latest changes in the SVN repository.
That will avoid merge conflict resolution locally (in your git repo) before sending back the result in the SVN repo.
If the dcommit
operation fails in the middle of transmitting a large number of commit, this blog post can show you how to pick up where you left off.
You can push the commits you have done with git svn dcommit
git-svn is a way to use a subversion repository with the git toolset.
精彩评论