Javascript Git client

前端 未结 5 1780
孤独总比滥情好
孤独总比滥情好 2020-12-23 14:10

Is there a Javascript implementation of Git?

I\'m wanting to use HTML5 to create a rich Javascript application and have the idea that I could use git to track change

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 14:30

    You can use https://github.com/isomorphic-git/isomorphic-git

    isomorphic-git is a pure JavaScript reimplementation of git that works in both Node.js and browser JavaScript environments. It can read and write to git repositories, fetch from and push to git remotes (such as GitHub), all without any native C++ module

    isomorphic-git is a continuation of https://github.com/creationix/js-git

    isomorphic-git would not have been possible without the pioneering work by @creationix and @chrisdickinson. Git is a tricky binary mess, and without their examples (and their modules!) I would not have been able to come even close to finishing this. They are geniuses ahead of their time.

    Related questions:

    1. Run git push from javascript hosted in static site
    2. How to implement Git in pure Javascript to create a GUI?

提交回复
热议问题