纯Javascript实现的Git客户端:git-html5.js

jopen 10年前

git-html5.js是一个纯Javascript实现的Git客户端库。它实现了一个完整的Git工作流,可以运行在一个支持HTML5的浏览器中。一些示例用例</span>

  • 基于浏览器的代码编辑器
  • Browser devtools
  • ChromeOS/FirefoxOS system tools
  • ChromeOS/FirefoxOS applications that require git support

克隆远程Git仓库至您基于浏览器的文件系统中

var options = {      dir: projectHome,      url: 'https://github.com/ryanackley/git-html5.js.git',      depth: 1  };    GitApi.clone(options, function(){       // clone has completed at this point, do something with the files that have been imported into dir  });

项目主页:http://www.open-open.com/lib/view/home/1416656242211