Point a branch at a different commit
One step with Gitea. We can help you get access.
Get something done
Point a branch at a different commit
with Gitea · Software Construction Management
Use Gitea: its Gitea Repository API lets you point a branch at a different commit in a single step (PUT /repos/{owner}/{repo}/branches/{branch}). capabilities.work can help you get signed up and connected.
- Can I move a branch to point at a different commit?
- Is a force update allowed when resetting a branch to a commit that isn't a descendant?
Say it to your AI assistant
- Move branch {branch} in {owner}/{repo} to commit {new_commit_id}.
- Force-reset {branch} in {owner}/{repo} to {new_commit_id}, setting force to {force}.
For your developer
PUT /repos/{owner}/{repo}/branches/{branch} in Gitea Repository API. Full spec on APIs.io.