My application break. I couldn't find where the bugs are, I know that it started to break at commit(2201e03) that I made.
I'm not sure how to go above that, so I decided to do git reset --hard 619176e
to reset my application back to where it used to work.
It's work now. I got the message "HEAD is now at 619176e Fix UI in CD Create and Edit" and my application is also back now. Good !
Then, I develop some more, save, commit, and tried to push again, and I CAN'T. As soon as I make changes, and tried to push, I got a message tell me that I am behind 7 commits, and I should perform and PULL and then PUSH. But I don't want that.
If I do that my application will break again. Thus, even if I am behind 7 commits now. I really don't want to delete those commits yet, but I still want to move forward from 619176e.
What should I do ? If I want to keep those 7 commits AND force git to think that 619176e is my HEAD or MASTER ? and move on from here ?
Should I use git reset HEAD^
?
Any tip or suggestion will be a huge help for me !!