{"id":22433680,"url":"https://github.com/gavinning/git-commands","last_synced_at":"2025-03-27T07:45:48.825Z","repository":{"id":143879839,"uuid":"139521707","full_name":"gavinning/git-commands","owner":"gavinning","description":"nodejs操作git | Execute git command using Node.js","archived":false,"fork":false,"pushed_at":"2018-07-03T03:16:43.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T11:18:19.216Z","etag":null,"topics":["git","git-command","git-commands","node-git"],"latest_commit_sha":null,"homepage":"","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/gavinning.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-03T03:06:07.000Z","updated_at":"2018-07-05T03:05:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f0e963f-bdc6-469e-b241-3d713d0f7e17","html_url":"https://github.com/gavinning/git-commands","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fgit-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fgit-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fgit-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fgit-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinning","download_url":"https://codeload.github.com/gavinning/git-commands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806390,"owners_count":20675296,"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":["git","git-command","git-commands","node-git"],"created_at":"2024-12-05T22:15:38.228Z","updated_at":"2025-03-27T07:45:48.819Z","avatar_url":"https://github.com/gavinning.png","language":"JavaScript","readme":"git-commands\n---\nnodejs操作git  \nExecute git command using Node.js  \n\n### Install\n```sh\nnpm i git-commands --save\n```\n\n### Usage\n```js\nconst Git = require('git-commands')\nconst git = new Git({ reps: 'your git repository path' })\n```\n```js\n// status\nconsole.log( git.command('status') )\n\n// pull\nconsole.log( git.command('pull') )\n\n// checkout \nconsole.log( git.command('checkout master') )\n\n// push\nconsole.log( git.command('push origin master') )\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fgit-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinning%2Fgit-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fgit-commands/lists"}