Deprecated use https://isomorphic-git.org/ instead
Uses the github API to make commits to github repos. lightweight and doesn't depend on Git.
$ npm install commit-to-github
commitToGithub({
user: "Ramshackle-Jamathon",
repo: "commit-to-github",
token: "<a-github-oauth-token>",
files: [
{path: "foo.txt", content: "nice words!"},
{path: "sick-folder/bar.txt", content: "you're the best!"},
],
fullyQualifiedRef : "heads/master", //optional default = "heads/dev"
forceUpdate: true, //optional default = false
commitMessage: "great work!" //option default = "AutoCommit - " + new Date().getTime().toString();
}).then(function(res){
// success!
}).catch(function(err){
// oh no! something went wrong
})