RTC 到 GIT 迁移
RTC to GIT migration
我是 git 的新手,在我们的项目中,我们计划从 Rational Team Concert 迁移到 git。
我们有 2 个主流:
- 开发
- Post-发布
我们已经完成了大约 30 个版本。
我们的计划是 zip/tar 获取源代码(包括两个分支)并将其迁移到 GIT。非常感谢任何想法或策略。
我们的想法是迭代本地回购工作区或沙箱中的每个基线,并使用该本地文件夹作为源以在 Git 回购中导入源。
cd /path/to/git/repo
git add --work-tree=/path/to/local/RTC/sandbox/aComponent add .
git commit -m "release x"
# change baseline in local workspace
我建议为每个 RTC 组件保留一个 Git 存储库。
clarify whats the advantage with "git add --work-tree=..
" against the normal git add
这允许源代码工作树(正在导入的代码库)驻留在其他地方:您的 tarball 可以在单独的文件夹中干净地解压缩(避免旧 tarball 中的文件不存在)当新的 tarball 在同一文件夹中解压缩时删除。
If I'm going to import from a tar , will the versions/history of the streams preserved
否:每个 tarball 代表一个流基线,一个时间快照,而不是来自 RTC 的完整原始历史记录。
我是 git 的新手,在我们的项目中,我们计划从 Rational Team Concert 迁移到 git。
我们有 2 个主流:
- 开发
- Post-发布
我们已经完成了大约 30 个版本。
我们的计划是 zip/tar 获取源代码(包括两个分支)并将其迁移到 GIT。非常感谢任何想法或策略。
我们的想法是迭代本地回购工作区或沙箱中的每个基线,并使用该本地文件夹作为源以在 Git 回购中导入源。
cd /path/to/git/repo
git add --work-tree=/path/to/local/RTC/sandbox/aComponent add .
git commit -m "release x"
# change baseline in local workspace
我建议为每个 RTC 组件保留一个 Git 存储库。
clarify whats the advantage with "
git add --work-tree=..
" against the normalgit add
这允许源代码工作树(正在导入的代码库)驻留在其他地方:您的 tarball 可以在单独的文件夹中干净地解压缩(避免旧 tarball 中的文件不存在)当新的 tarball 在同一文件夹中解压缩时删除。
If I'm going to import from a tar , will the versions/history of the streams preserved
否:每个 tarball 代表一个流基线,一个时间快照,而不是来自 RTC 的完整原始历史记录。