Reset the Branch Head to a Specific Commit

Assuming you have created a database, and made a few commits, you can time travel to inspect them.

You may want to reset the branch to a specific commit. You will need your branch name and commit ID which can be obtained by time travelling.

The below code will rest your branch to a specific commit ID -

const resetBranch = async () => {
   await  client.resetBracnh(mybranchName, mycommitid)
   console.log("Succesfully reset branch HEAD to mycommitid")
}