Git: Undoing Changes Safely

Wishlist Share

About Course

Everyone makes mistakes in Git. This course shows you how to undo them safely: discarding or unstaging changes with git restore, fixing your last commit with –amend, undoing shared commits with git revert, rewinding local history with git reset, and rescuing “lost” work with the reflog.

Tutwoo is an independent learning provider. This course is general skills training based on official documentation. It is not an accredited qualification. Software behaviour can change between versions, so check the official documentation for the version you use.

What Will You Learn?

  • Discard local edits and unstage files with git restore Fix the last commit with git commit --amend Undo published commits safely with git revert Use git reset modes correctly and recover work with git reflog

Course Content

Course Lessons

  • Where is the mistake?
  • Working tree and staging: git restore
  • Fixing commits: –amend and git revert
  • Rewinding with git reset and recovering with reflog

Sources & Further Reading
The official guidance this course is based on.

Final Assessment

Student Ratings & Reviews

No Review Yet
No Review Yet

Want to receive push notifications for all major on-site activities?

✕