GIT command to delete the last log without affecting the current version [duplicate]

-1

I would like to delete the last commit log I made, the commit log that is there is a file that I deleted, but I do not want this to be in the versioning, what is the git command I need to do for this? / p>     

asked by anonymous 30.06.2015 / 17:52

1 answer

1

Ivan ,

1. Make a backup (as a precaution)

Now, to reverse the last commit but keep the changes (your case):

git reset HEAD~

If you do not want changes to the last commit to continue:

git reset --hard HEAD~
    
30.06.2015 / 18:03