Search code examples
gitmigrationrtc

RTC to GIT migration


I’m a newbie to git, In our project we are planning to migrate from Rational Team Concert to git.

We have 2 main streams:

  • dev
  • Post-Release

And we have around 30 releases done .

Our plan is zip/tar ball the source code (with both the branches) and migrate it to GIT. Any ideas or strategy is really appreciated.


Solution

  • The idea is to iterate over each baselines in a local repo workspace or sandbox, and use that local folder as source for importing the source in a Git repo.

    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
    

    I would recommend keeping one Git repo per RTC component.

    clarify whats the advantage with "git add --work-tree=.." against the normal git add

    That allows for the source worktree (the codebase being imported) to reside elsewhere: your tarballs can be cleanly uncompressed in separate folders (that avoid having files from an older tarball not removed when new tarball are uncompress in the same folder).

    If I'm going to import from a tar , will the versions/history of the streams preserved

    No: each tarball represents a stream baseline, a snapshot in time, not the full original history from RTC.