Now I am on my master branch, and try to switch to another branch called tempCheck. The problem is that the terminal stops me from doing that with this message "You're in 'detached HEAD state. ... HEAD is now at 8d8a48f ... ". So, I am now in *(HEAD detached at origin/tempCheck). 1
I know that I messed up the branch before, but don't remember the correct commands that I used. revert?
I remember what I tried to do. I committed and pushed some that I supposed not, so tried to delete what I just pushed into tempCheck branch - 8d9a48f and 312dd06 and went back to 8a405bc. 2 3
How can I solve the detached HEAD state, delete wrong commits, and go back to the point that I want to work on? Thank you!