git reset --hard HEAD^ git push origin -f
//the below code can recover your last commited files git checkout -f