{"id":15022221,"url":"https://github.com/exions/undo-push","last_synced_at":"2025-04-12T06:15:47.930Z","repository":{"id":44373625,"uuid":"287714885","full_name":"exions/undo-push","owner":"exions","description":"↪️ Undo a git push by removing the commit and going back to the commit before it.","archived":false,"fork":false,"pushed_at":"2020-08-18T13:37:34.000Z","size":8,"stargazers_count":4,"open_issues_count":1,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T06:15:19.854Z","etag":null,"topics":["git","git-push","git-push---force","github-actions","githubaction-workflow","githubactions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/undo-push","language":"Shell","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/exions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-15T09:17:21.000Z","updated_at":"2024-03-22T10:00:38.000Z","dependencies_parsed_at":"2023-01-11T17:22:35.105Z","dependency_job_id":null,"html_url":"https://github.com/exions/undo-push","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"1ccaffaa740d650cb8f1f30cbada9205c2785f24"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exions%2Fundo-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exions%2Fundo-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exions%2Fundo-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exions%2Fundo-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exions","download_url":"https://codeload.github.com/exions/undo-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525138,"owners_count":21118619,"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-push","git-push---force","github-actions","githubaction-workflow","githubactions"],"created_at":"2024-09-24T19:57:39.703Z","updated_at":"2025-04-12T06:15:47.878Z","avatar_url":"https://github.com/exions.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Undo Push\nUndo a git push by removing the commit and going back to the commit before it.\n\n⚠️ warning!: **Double check before running. This action removes commit. You may lose data.**\n\n## Usage\n\ncopy and commit this to `.github/workflows/undo-push.yml` in your default branch of your repository.\n```yaml\nname: Manual Undo Push Action\non: \n  workflow_dispatch:\n    inputs:\n      branch:\n        description: 'Branch to undo commit'\n        required: true\n        default: 'master'\n\njobs:\n  Undo:\n    runs-on: ubuntu-latest\n    steps: \n      - name: Checkout\n        uses: actions/checkout@v2\n        with:\n           ref: ${{ github.event.inputs.branch }}\n           fetch-depth: 0 \n      - name: Undo Push\n        uses: exions/undo-push@v1\n        with:\n          branch: ${{ github.event.inputs.branch }}\n```\n\n## How to setup this action\n\n1. `Add file` \u003e `Create new file`  \n2. Name it `.github/workflows/undo-push.yml`\n3. Commit changes.\n\n## How to run this action\n\nThis action can trigger manually as needed. \nTo undo your push,\n\n1. Go to `Actions` at the top of your Github repository\n2. Click on `Manual Undo Push Action` (or other name you have given) under `All workflows`\n3. You will see `Run workflow`, click on it\n4. Fill in the branch to undo the most recent push (⚠️ make sure it is correct)\n5. Click `Run workflow`\n6. Check your branch commit history\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexions%2Fundo-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexions%2Fundo-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexions%2Fundo-push/lists"}