"Delete commits from a branch in Git - Stack Overflow"
git reset --hard HEAD~1
=> Le 1 indique que l'on veut revenir 1 commit en arrière
git push origin HEAD --force
=> Si le commit a déjà été poussé, il faut forcer /!\ (pas forcément conseillé)
git
reset
hard
delete
last
commit
branch
FoldFold allExpandExpand allAre you sure you want to delete this link?Are you sure you want to delete this tag?
The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community