forked from kennyyu/bootcamp-git
-
Notifications
You must be signed in to change notification settings - Fork 337
Exercise Reverting a commit
Robert Adams edited this page Sep 8, 2018
·
3 revisions
- Make sure you've done our Github forking exercise
- Make sure you've done our Committing and pushing exercise
- Make sure you've done our Resolving merge conflicts exercise
Often you might have committed something, pushed it, and then realized "crap! I actually don’t want that".
As an example, one of the CS61 TFs is offended by commit 4b40046 ("Adding aliases"). Run git show 4b40046 to see the changes:
Your task is to figure out how to revert commit 4b40046. Use Google. Your end result if you run git lg should look like this:
And the contents of names.txt should look like this:
Once you've finished, push your changes! git push origin master
Go back to the main page.


