-
Notifications
You must be signed in to change notification settings - Fork 350
Exercise Reverting a commit
Kenny Yu edited this page Oct 23, 2013
·
2 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.