mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 09:34:00 +08:00
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
781 B
781 B
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: