How to Undo Pushed Git Commit is one of the ways to undone the last git push.
A team member accidentally pushed half a gig of unwanted zips to the remote repo last night.Yes...oops.
Is there a simpler way to get to the bottom of what happened?Will she actually remove those files from the history if she amends her last commit and pushes again?
If she commits and pushes again, that leaves the content in the repo, which is not good.
I didn't realize it fixed my problem because I only have one branch.
If the last commit is the one you want to drop, force pushes the local checkout to the remote repository.