Options
Branch name (without
refs/heads/) that receives the reset commit.Commit SHA to reset the branch back to. Commits after this point are undone.
Provide
name and email for the commit author.Commit SHA that must match the current tip. Use to avoid races.
Custom message. Defaults to
Reset <branch> to "<target subject>".Provide
name and email. If omitted, the author identity is reused.Response
The SHA of the reset commit
The SHA of the commit’s tree object
The branch that received the reset
Size of the pack in bytes
Contains
branch, oldSha/old_sha (previous tip, 000000... if new), and newSha/new_sha (reset commit)