i want to revert back to the last commit in git so i used ~
$git reset --hard HEAD is now at 86f1867 .
then i tried to commit the changes