I have a branch(mybranch) with 6 commits. After 6 commits I want to revert the last 3 commits. So I checked out sha using git checkout 3978bf85d8a05653c927cfabdf8c018167faf363
I can see last 3 commits are reverted. Now I want to update mybranch with this. How can I do that?
(hase) root@ajain1:~/hase# git status
HEAD detached at 3978bf8
nothing to commit, working directory clean