levi durfee

revert

Reverting Extra Changes without Squashing Commits

tech git revert
When working with Git, it’s not uncommon to make mistakes or introduce unnecessary changes. If you’ve committed changes that you later regret, you might want to revert them without losing the commit history. One common approach is to use git reset --hard or git rebase -i to squash or rewrite the commit history. However, this can be problematic, especially if others have already cloned or forked your repository. In this scenario, you want to create a new commit that reverts the extra changes, effectively “reseting” the state of your repository to a previous point. Read more...
1 of 1