git reset HEAD^
Note: If alrady pushed to remote, the next push will require
--force
for overwriting
git clean -fd
git clean -fdn # dry run
git reset --soft [commit|branch]
# Next, commit and push
Note: If alrady pushed to remote, the next push will require
--force
for overwriting