I have the following list of commits:
a->b->c->d->e->f where letters would represent the sha hash. If commit c breaks the build I want new structure to look like this a->b where everything else on the branch would be deleted. I am working in a headless state, and it seems like BitBucket REST API doesn't provide rest calls to handle it in headless state, so would have to do git operations in some other environment so all my work has to be relative to commit c, because its the only information that I will know. I know most likely I would have to use rebase, but I wasn't sure how to git operations relative to the sha number. Thanks for your help!