Search code examples
gitgithubgit-fast-import

Git/GitHub import from SourceAnywhere


We currently use SourceAnywhere Hosted as our version control server. I'm looking to migrate over to GitHub, and would really like to preserve our 8+ year history.

Has anyone else successfully completed this migration and care to share their tools/process?

Now, assuming that this hasn't been done before, I suppose I'm looking at writing a git fast-import script using the SourceAnywhere SDK or command line client. Being new to git, are there any existing scripts or resources you could direct me towards as a starting point?


Solution

  • I've finally cleaned up my project and added it to GitHub. You can find it here: SAWHtoGit.

    It does a pretty good job of exporting the history into logical changesets, with a few small limitations:

    • Any file that has been deleted in SourceAnywhere will not be imported into the history, at all, due to limitations in the SourceAnywhere API.
    • Any files that were 'moved' can be imported, as long as you provide a mapping for the old/new directories.

    Other than that, it worked well for our purposes and we were able to successfully migrate our code and history to GitHub. I hope it will be useful to others, as well!