FYI: I am using bitbucket to push my git to (I know not very important).
I was working on a project, wherein I made changes, and pushed to origin master, only to realise that master had some major bug, hence I checked out to a specific old commit, in the same master branch by using
git checkout commit_name
After that I started working further and kept adding and committing, now I am lost how to keep the following new commits, as well as not lose earlier (buggy) master. Basically how to get back on track.
P.S. I tried using git push -u origin master
, but it returns Everything up-to-date
, and nothing gets pushed to bitbucket.