{"id":13793760,"url":"https://github.com/fabiospampinato/autogit-command-rollback","last_synced_at":"2025-05-12T20:31:11.957Z","repository":{"id":57187488,"uuid":"153511567","full_name":"fabiospampinato/autogit-command-rollback","owner":"fabiospampinato","description":"A command for rolling back the history to that of the origin and discarding local changes.","archived":true,"fork":false,"pushed_at":"2020-01-24T20:28:21.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T21:04:31.722Z","etag":null,"topics":["autogit","command","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:22:28.000Z","updated_at":"2023-12-11T16:13:36.000Z","dependencies_parsed_at":"2022-08-28T11:11:50.786Z","dependency_job_id":null,"html_url":"https://github.com/fabiospampinato/autogit-command-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-command-rollback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fautogit-command-rollback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fautogit-command-rollback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiospampinato%2Fautogit-command-rollback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiospampinato","download_url":"https://codeload.github.com/fabiospampinato/autogit-command-rollback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253816718,"owners_count":21968873,"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","command","reset","revert","rollback"],"created_at":"2024-08-03T23:00:30.903Z","updated_at":"2025-05-12T20:31:11.644Z","avatar_url":"https://github.com/fabiospampinato.png","language":"TypeScript","funding_links":["https://github.com/sponsors/fabiospampinato","https://www.paypal.me/fabiospampinato"],"categories":["Commands"],"sub_categories":[],"readme":"# Autogit Command Rollback\n\nA command for rolling back the history to that of the origin and discarding local changes.\n\nThis command is quite useful when developing other commands or plugins. 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-command-rollback\n```\n\n## Usage\n\n#### Options\n\nThis command 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 command to your configuration:\n\n```js\nconst rollback = require ( 'autogit-command-rollback' );\n\nmodule.exports = {\n  commands: {\n    'rollback': rollback (),\n    'rollback-tree': rollback ({\n      rollback: {\n        workingTree: true\n        history: false\n      }\n    })\n  }\n}\n```\n\n#### CLI\n\nCall it from the CLI with:\n\n```sh\nautogit rollback\nautogit rollback-tree\n```\n\n## License\n\nMIT © Fabio Spampinato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fautogit-command-rollback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiospampinato%2Fautogit-command-rollback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiospampinato%2Fautogit-command-rollback/lists"}