从SourceAnywhere导入Git / GitHub [英] Git/GitHub import from SourceAnywhere

查看:156
本文介绍了从SourceAnywhere导入Git / GitHub的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前使用 SourceAnywhere Hosted 作为我们的版本控制服务器我希望迁移到GitHub,并且真的想保留我们8年以上的历史。



其他人是否已成功完成此迁移并关心共享其工具/ process?

现在,假设之前没有做过,我想我正在编写一个git fast-import 脚本使用SourceAnywhere SDK或命令行客户端。作为git的新手,是否有任何现有的脚本或资源可以指导我作为起点? 最后清理了我的项目并将其添加到GitHub。你可以在这里找到它: SAWHtoGit



它将历史记录导出为逻辑变更集做得相当不错,但有一些小的局限性:


  • 任何已在SourceAnywhere中删除的文件由于SourceAnywhere API的局限性,将不会被导入到历史记录中。

  • 只要您提供了映射,就可以导入任何被移动的文件旧/新目录。



除此之外,它适用于我们的目的,并且我们能够成功地将我们的代码和历史迁移到GitHub上。我希望它对其他人也有用!


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?

解决方案

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!

这篇关于从SourceAnywhere导入Git / GitHub的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆