git checkout HEAD^1

github1

I always do % git push only if the code runs (almost) successfully, and I pushed twice yesterday. I found today that my latest code does not run properly any more. What happened?

I went back a single step to my previous commit, and then two, where I found the one, pointer to function member, that seems to be OK.

github2

Where did I go wrong?

Leave a Reply

Your email address will not be published. Required fields are marked *