I was working on my project and made a few commits. After that i was stuck in a problem so i did git checkout 2y72aa and made many changes and finally performed git add . and git commit. 
But now when i performed git status  it shows me HEAD detached from 2y72aa where 2y72aa commit is my older commit and not the latest one.
how do i commit my changes and shift at the latest change ?
Please note that the project is important so i dont want anything to be deleted permanentely.
 
     
     
    