{"id":13793797,"url":"https://github.com/fabiospampinato/autogit-plugin-rollback","last_synced_at":"2025-05-12T20:31:12.895Z","repository":{"id":57187506,"uuid":"153509910","full_name":"fabiospampinato/autogit-plugin-rollback","owner":"fabiospampinato","description":"A plugin for rolling back the history to that of the origin and discarding local changes.","archived":true,"fork":false,"pushed_at":"2020-01-24T20:28:23.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T17:17:24.846Z","etag":null,"topics":["autogit","plugin","reset","revert","rollback"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabiospampinato.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"fabiospampinato","custom":"https://www.paypal.me/fabiospampinato"}},"created_at":"2018-10-17T19:09:06.000Z","updated_at":"2023-12-11T16:13:35.000Z","dependencies_parsed_at":"2022-08-28T10:51:25.909Z","dependency_job_id":null,"html_url":"https://github.com/fabiospampinato/autogit-plugin-rollback","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/fabiospampinato%2Fautogit-plugin-rollback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fautogit-plugin-rollback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fautogit-plugin-rollback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fautogit-plugin-rollback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/autogit-plugin-rollback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253816724,"owners_count":21968874,"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":["autogit","plugin","reset","revert","rollback"],"created_at":"2024-08-03T23:00:31.380Z","updated_at":"2025-05-12T20:31:12.538Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":["Plugins"],"sub_categories":[],"readme":"# Autogit Plugin - Rollback\n\nA plugin for rolling back the history to that of the origin and discarding local changes.\n\nThis plugin is quite useful when developing other plugins or commands. You can test them, and if they don't work properly you can just roll back.\n\n## Install\n\n```sh\nnpm install --save autogit-plugin-rollback\n```\n\n## Usage\n\n#### Options\n\nThis plugin uses the following options object:\n\n```js\n{\n  remote: 'origin', // Resetting history up to the last commit present in this remote\n  rollback: { // Things to roll back\n    workingTree: true, // Discard all local changes\n    history: true // Discard all new commits compared to the remote\n  },\n  force: false // Don't ask for confirmation\n}\n```\n\n#### Configuration\n\nAdd this plugin to a command:\n\n```js\nconst rollback = require ( 'autogit-plugin-rollback' );\n\nmodule.exports = {\n  commands: {\n    'my-command': [\n      rollback ({\n        rollback: {\n          workingTree: true\n          history: false\n        }\n      })\n    ]\n  }\n}\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fautogit-plugin-rollback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fautogit-plugin-rollback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fautogit-plugin-rollback/lists"}