mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-12-01 03:30:25 +08:00
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
9 lines
781 B
Markdown
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) |