Squash a branch's commits into one
One step with Harness. We can help you get access.
Get something done
Squash a branch's commits into one
with Harness
Works with AI assistants
Use Harness: its Harness Repository API lets you squash a branch's commits into one in a single step (POST /code/api/v1/repos/{repo_identifier}/squash). Harness 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 squash all the commits on my branch into a single commit?
- Can I preview a squash with a dry run before rewriting the branch?
Say it to your AI assistant
- Squash the commits on {head} relative to {base} in repository {repo}.
- Squash branch {head} of repo {repo} into one commit titled {title}.
For your developer
POST /code/api/v1/repos/{repo_identifier}/squash in Harness Repository API. Full spec on APIs.io.