如何使用git-svn切换svn分支? [英] How to switch svn branches using git-svn?
问题描述
我使用git-svn跟踪其他人在svn上的开发情况。我试图弄清楚如何使用gti-svn从一个svn分支切换到另一个分支。我所能找到的所有示例都讨论了使用svn switch作为切换位置的方法,而不是实际的分支。
I am using git-svn to track development by someone else on svn. I'm trying to figure out how to use gti-svn to switch from one svn branch to another. All the examples I have able to find talk about using svn switch as method to switch location instead of actual branches.
实际上,我想要使用svn fetch从/svn/branch/1.3取代/svn/branch/1.2
。
Essentially, I would like to start pulling from /svn/branch/1.3 instead of /svn/branch/1.2 using svn fetch.
推荐答案
在通过git-svn在svn分支上工作时,这些命令对我来说非常有用:
These commands have been incredibly useful for me when working on svn branches via git-svn:
#create local Git branch that mirrors remote svn branch
git checkout -b local/RELEASE-0.12 RELEASE-0.12
#will connect with a remote svn branch named ‘RELEASE-0.12′
# -n will show which svn branch you will commit into:
git svn dcommit --dry-run
在我的关于 justaddwater.dk 。
这篇关于如何使用git-svn切换svn分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!