Reset a Project
How-to use the JS Client to reset a branch
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 traveling.
The below code will rest your branch to a specific commit ID -
const resetBranch = async () => {
await client.resetBracnh(mybranchName, mycommitid)
console.log("Successfully reset branch HEAD to mycommitid")
}
Last modified 2mo ago