githubteacher / github-for-developers-sept-2015

practice repo for the Sept 29-30 GitHub for Developers class
12 stars 36 forks source link

can you revert any arbitrary commit #713

Closed OluOyedipe closed 8 years ago

OluOyedipe commented 8 years ago

what would happen if i wanted to revert the 10th commit instead of the last one?

jaw6 commented 8 years ago

git revert <SHA for the 10th commit>

You'll create a commit which is the opposite of SHA, possibly requiring you to resolve one or more merge conflicts. Otherwise, it continues as in the demo.