#git

2025 03 27

hard reset git to last commit

git reset --hard HEAD~

#same as 

git reset -hard HEAD~1
    

then git push -f

Edit on GitHub