I was following this SO question here but something is not working for me...
How to undo last commit(s) in Git?
I do a git reset --hard HEAD~1
three times and I see the code I want and when I do a git status, it says You branch is behind origin/master by 3 commits and can be fast-forwarded. Yes, I backed out of 3 commits so that seems good but how do I now commit and push the changes so the latest in master in my remote repo is without the 3 commits.
thanks, Dean