A Git crash courses for you — Undo changes
In this series of stories, you will deepen your knowledge of git. The following topics will be covered:
- commit files,
- commit changes,
- undo changes,
- resolve merge conflicts,
- find bugs,
- rewriting the history,
- working remotely.git checkout
To replace what is in the working directory with the latest committed version:
git checkout