capabilities.work

Revert a commit

One step with GitLab. We can help you get access.

Get something done

Revert a commit

with GitLab
Works with AI assistants

Use GitLab: its GitLab REST Commits API lets you revert a commit in a single step (POST /api/v4/projects/{id}/repository/commits/{sha}/revert). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I undo a bad commit in a GitLab branch?
  • Can I preview what a revert would change before it commits?
  • Can I revert a commit to a branch that is not the default one?
Say it to your AI assistant
  • Revert commit {sha} in project {id} to branch {branch}.
  • Dry-run a revert of commit {sha} to branch {branch} in {id}, no commit made.
For your developer

POST /api/v4/projects/{id}/repository/commits/{sha}/revert in GitLab REST Commits API. Full spec on APIs.io.