By mistake I did a git reset HEAD~ in my branch. I see all my changed files on my local. I don't want to change anything. The branch is good as is.
What do I have to do?
By mistake I did a git reset HEAD~ in my branch. I see all my changed files on my local. I don't want to change anything. The branch is good as is.
What do I have to do?
 
    
    If you haven't done anything else, just do this command git reset --hard HEAD@{1}. If you've made other changes, do git reflog show to see which commit you want to revert back to. Then do git reset --hard XXX and put that commit ID in the XXX part.
You then git push --force to make sure your remote branch reflects the change.
