DEV Community

Discussion on: How to revert your git commits without panicking

Collapse
 
bholmesdev profile image
Ben Holmes

Apologies for the mistakes previously in this article! Made two important fixes:

  • Added a .. to the end of the revert so it would actually revert down to that commit rather than solely that commit. Updated the explanation to reflect that as well.
  • Added a ^ to the git diff command so it would actually log the differences down to and including the copied commit hash. That symbol simply means the ancestor of that commit.