$ git revert [here comes the commit id] -Note that this operation creates a new commit that reverts all of the changes instead of removing given commit from history.