It is better to do git revert -m 1 commit_hash when the branch has already been pushed or shared, as it won't cause a rewriting of the history, and doesn't require --force.
git revert -m 1 commit_hash
It is better to do
git revert -m 1 commit_hash
when the branch has already been pushed or shared, as it won't cause a rewriting of the history, and doesn't require --force.