admin管理员组文章数量:1418082
I am developing a pretty large JavaScript library (Formula.js) of functions (450+). Most of them are pretty independent from each other and totally self-contained, or make use of well-known third-party libraries (Moment.js for example). In order to support discussions and manage contributions at the function level rather than at the library level, I created one Gist per function (Cf. CONVERT Gist), and one repository for the entire library. This makes it easy to include the code of a function in the function's documentation (Cf. CONVERT documentation).
My question is: how do I keep the master repository synchronized with the Gists?
The solution should:
- allow changes to be made from the master repository and from the individual Gists
- automate the inclusion of copyright headers on the individual Gists
- automate the inclusion of ments related to third-party libraries on the individual Gists
Additional thoughts:
I could not find many examples of projects being managed that way. I'm also rather unexperienced with Git. Therefore, the workflow I'm suggesting might be totally flawed, or introduce unwanted plexity. Any thoughts on possible best practices for keeping things under control are much wele.
I am developing a pretty large JavaScript library (Formula.js) of functions (450+). Most of them are pretty independent from each other and totally self-contained, or make use of well-known third-party libraries (Moment.js for example). In order to support discussions and manage contributions at the function level rather than at the library level, I created one Gist per function (Cf. CONVERT Gist), and one repository for the entire library. This makes it easy to include the code of a function in the function's documentation (Cf. CONVERT documentation).
My question is: how do I keep the master repository synchronized with the Gists?
The solution should:
- allow changes to be made from the master repository and from the individual Gists
- automate the inclusion of copyright headers on the individual Gists
- automate the inclusion of ments related to third-party libraries on the individual Gists
Additional thoughts:
I could not find many examples of projects being managed that way. I'm also rather unexperienced with Git. Therefore, the workflow I'm suggesting might be totally flawed, or introduce unwanted plexity. Any thoughts on possible best practices for keeping things under control are much wele.
Share Improve this question asked Jan 26, 2013 at 15:10 Ismael GhalimiIsmael Ghalimi 3,5653 gold badges24 silver badges26 bronze badges2 Answers
Reset to default 7Seeing as each gist is in fact a git repository, you could use the git submodule feature to include them all in your primary GitHub repository.
Have a look at this page from the book, http://git-scm./book/en/Git-Tools-Submodules , it even has a section on so-called Superprojects.
And you could use Github.js to add copyright headers and library-related ments.
本文标签: javascriptHow to synchronize a GitHub repository and multiple GistsStack Overflow
版权声明:本文标题:javascript - How to synchronize a GitHub repository and multiple Gists - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745277496a2651268.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论