I created a branch for my change and did a lots of commit over there. But then I wanted to rollback my latest commit. sO i did following 1. I checkout the previous commit with git checkout on my branch. 2. Then I did my changes to local directory and committed the changes.
Now I am not able to push it to the branch head. It is showing as detached head and can't see this commit in GIT UI.
Please note I want to push the changes to the head of my branch and not to the master. Any help ?