Git - Undo pushed commits - Stack Overflow

PHOTO EMBED

Mon May 03 2021 12:59:49 GMT+0000 (Coordinated Universal Time)

Saved by @chrishyatt7

git reset <previous label or sha1>
git add .
git commit -m "commit message"
git push -f <remote-name> <branch-name>
content_copyCOPY

https://stackoverflow.com/questions/22682870/git-undo-pushed-commits