How can I undo pushed commits using git?
You can revert individual commits with: git revert <commit_hash> This will create a new commit which reverts the changes of the commit you specified. Note that it only reverts that specific commit, and not commits that come after that. If you want to revert a range of commits, you can do it like this: git … Read more