Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑我的以下情况:
假设我的 svn 存储库包含100 个修订,已迁移到 Git 存储库(所以我的 Git 包含 100 个修订)。
现在我的 svn 存储库得到了更新,比如说多了 5 个修订版,因此它有105 个修订版。如何仅将修订版 101 t0 105 迁移到我的 GIT 存储库?
我面临的主要挑战:
我尝试跟进这些对我没有帮助的链接,(仅供参考)
使用svnsync
使用 git svn 克隆
使用 git-svn。当您进行初始克隆时git svn clone ...,您将获得前 100 个修订版。稍后您git svn fetch将获取新出现的 5 个修订版。
git svn clone ...
git svn fetch
所有 105 个修订都将以正确的顺序出现,因此历史记录将被保留。
更新:
如果您希望避免获得前 100 个修订版,请首先使用 fetch 执行 git svn init:
git svn init ... git svn fetch -r <svn revision you want to start from>