因此,我使用 svn2git 将 SVN 存储库转换为 git 存储库,因为我认为 svn 存储库不会再有任何工作。然而,其他人不知道我们正在切换到 git(这有点复杂,但他基本上只是在处理一个特定的文件)所以他向 SVN 做了一些提交。现在我想把这些提交到 git 中。我还能这样做吗,还是 svn2git 完全是单向的?
如果没有,是否有一种方法可以从 SVN 提交生成补丁,类似于 git format-patch
?我似乎无法从粗略的搜索中找到一个;似乎 SVN 开发人员从未想过您会想要将提交转换为补丁。
最佳答案
svn2git 现在支持 --rebase。来自(当前)文档:
As of svn2git 2.0 there is a new feature to pull in the latest changes from SVN into your git repository created with svn2git. This is a one way sync, but allows you to use svn2git as a mirroring tool for your SVN repositories.
The command to call is:
$ cd <EXISTING_REPO> && svn2git --rebase
关于svn - 在 svn2git 之后,你可以从 svn 获取更改吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1377701/