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>
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>
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~