Revert a particular git commit
Assume that you commit a change, pushed and there is also a merge commit. Now you want to revert that particular commit. Do the following
> git revert <that_particular_merge_hash> -m 1
This automatically creates a commit with the reverted changes. Now push again.
> git revert <that_particular_merge_hash> -m 1
This automatically creates a commit with the reverted changes. Now push again.
Comments
Post a Comment