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