{"id":22150921,"url":"https://github.com/yibn2008/easy-nodegit","last_synced_at":"2025-06-14T19:34:35.627Z","repository":{"id":57218593,"uuid":"132099723","full_name":"yibn2008/easy-nodegit","owner":"yibn2008","description":"A high level wrapper for nodegit with simple and elegant API","archived":false,"fork":false,"pushed_at":"2018-08-09T03:04:51.000Z","size":18,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-25T13:05:47.855Z","etag":null,"topics":["easy-nodegit","git","git-client","nodegit","nodejs-wrapper"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yibn2008.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-04T06:46:04.000Z","updated_at":"2020-10-22T14:52:27.000Z","dependencies_parsed_at":"2022-08-28T23:20:20.060Z","dependency_job_id":null,"html_url":"https://github.com/yibn2008/easy-nodegit","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/yibn2008/easy-nodegit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Feasy-nodegit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Feasy-nodegit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Feasy-nodegit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Feasy-nodegit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yibn2008","download_url":"https://codeload.github.com/yibn2008/easy-nodegit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Feasy-nodegit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259870917,"owners_count":22924592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["easy-nodegit","git","git-client","nodegit","nodejs-wrapper"],"created_at":"2024-12-02T00:24:06.858Z","updated_at":"2025-06-14T19:34:35.599Z","avatar_url":"https://github.com/yibn2008.png","language":"JavaScript","readme":"# easy-nodegit\n\nA simple and elegant git client base on nodegit.\n\n## install\n\n```bash\nnpm install easy-nodegit --save\n```\n\n## Usage\n\nSimple git client API, just like using git command:\n\n```js\nconst GitClient = require('easy-nodegit')\nconst client = new GitClient('/path/to/repo/work/directory', {\n  type: 'ssh',                        // support 'ssh' or 'http', default is 'ssh'\n  // when type == 'ssh'\n  privateKey: '/path/to/privateKey',  // default is ~/.ssh/id_rsa\n  publicKey: '/path/to/publicKey'     // default is ~/.ssh/id_rsa.pub\n  // when type == 'http'\n  username: '...',\n  password: '...'\n})\n\nasync function test () {\n  // clone\n  await client.clone('git@github.com:yibn2008/easy-nodegit.git')\n\n  // add\n  await client.add([\n    'index.js',\n    'index.css'\n  ])\n  await client.add('lib/**/*.js')\n\n  // reset\n  await client.reset('index.*')\n\n  // remove\n  await client.remove('lib/modules/*')\n\n  // commit\n  await client.commit('commit message')\n\n  // pull\n  await client.pull()\n\n  // push\n  await client.push()\n}\n\ntest().catch(err =\u003e {\n  console.error(err)\n})\n```\n\n## API\n\nsee [API.md](./API.md)\n\n## LICENSE\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyibn2008%2Feasy-nodegit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyibn2008%2Feasy-nodegit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyibn2008%2Feasy-nodegit/lists"}