Move a reference to a new commit
One step with GitHub. We can help you get access.
Get something done
Move a reference to a new commit
with GitHub · Software Construction Management
Use GitHub: its GitHub v3 REST Git API lets you move a reference to a new commit in a single step (PATCH /repos/{owner}/{repo}/git/refs/{ref}). capabilities.work can help you get signed up and connected.
- How do I point an existing branch at a different commit?
- Can I force-update a branch ref even when it isn't a fast-forward?
Say it to your AI assistant
- Update the ref {ref} in {owner}/{repo} to point at {sha}.
- Force-move existing branch {ref} in {owner}/{repo} to commit {sha} (force: {force}).
For your developer
PATCH /repos/{owner}/{repo}/git/refs/{ref} in GitHub v3 REST Git API. Full spec on APIs.io.