Files
developer-roadmap/roadmaps/git-github/content/undoing-changes@0Yi4cryT2v2SGBjouOas3.md

9 lines
781 B
Markdown

# Undoing Changes
Undoing changes in Git covers the different ways to reverse modifications, whether they're uncommitted, staged, or already committed. Depending on the situation, developers might use `git checkout` to discard local edits, `git reset` to unstage or remove commits, or `git revert` to safely undo a commit that's already been shared. Choosing the right method depends on whether the change has been pushed to a shared remote.
Visit the following resources to learn more:
- [@official@Undoing Changes](https://git-scm.com/book/en/v2/Git-Tools-Reset-Demystified)
- [@article@Undo Anything in Git](https://github.blog/open-source/git/how-to-undo-almost-anything-with-git/)
- [@article@Undoing Changes in Git](https://www.atlassian.com/git/tutorials/undoing-changes)