将Github回购移植到另一种语言 [英] Porting a Github repo to another language
问题描述
我想将别人的回购移植到另一种语言。在我的情况下: SCSS - >手写笔
,但它很容易就是 Javascript - > Coffeescript
。
最好的解决方法是什么?我应该:
更新新的语言回购?
理想情况下,我可以将原始CSS副本与主要repo的CSS的新更改进行比较,然后相应地更改我的Stylus文件。有没有简单的方法来做到这一点?
因为你想跟踪它的时间,我可能会叉现有的回购然后在单独的分支中进行更改(重写为foo)。因为这样当您再次查看主文件并查看最近的更改和比较历史记录时,您可以轻松地看到需要应用于重写的内容。更重要的是,您可能实际上希望至少将一些原始文件保留在新发行版中,例如文档,配置文件等。通过分支和使用分支,您可以更好地跟踪原始分发中想要的一些更改。
I'd like to port someone else's repo to another language. In my case: SCSS -> Stylus
, but it could easily have been Javascript -> Coffeescript
.
What is the best way to go about this? Should I:
- Fork the repo and edit the files, without the intention of pull requesting. Here I'd only be forking to maintain the link between the two so that I could pull updates in the future.
- Start a new repo, setup the remote to the original, pull and then edit the files.
- Something else?
Also, what is the best way to continue updating the new language repo?
Ideally, I'd be able to diff my original CSS copies against the new changes to the main repo's CSS, and then change my Stylus files accordingly. Is there an easy way to do this?
Because you want to track it over time, I would probably fork the existing repo and then do the changes in a separate branch ("rewrite-for-foo"). Because that way when you check out the master again and can look through the recent changes and diff history, you can easily see what you need to apply to the rewrite. And more importantly, you may actually want to keep at least some of the original files in your new distribution, such as documentation, configuration files, etc. By forking and using branches you can track the few changes you do want from the original distribution better.
这篇关于将Github回购移植到另一种语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!