Roll back commit without force push

Viewed 35

I wish to roll back a commit in a repo that can't force push. Is it possible to roll back a secondary branch, rename the main branch to something else, rename my secondary branch to main, then set the main branch to default? Would this have adverse affects to all of the forks (given no one has unfinshed/unmerged work on main)? Would there be big problems one everyone'smain branch when they pull the latest from upstream, or would it propperly drop the last commit?

0 Answers
Related