Accidental Deletion
Explore how to use Git log commands to visualize repository history and safely clone repositories. Learn to manage accidental deletion scenarios in cloned repositories and understand key Git folder structures to recover from common mistakes.
The four stages of Git repositories
Recall the four stages of data in Git repositories:
Visualizing the repository’s history
Run these commands in which you look at the repository, and then make a disastrous mistake.
1 git log
This shows you a default history of the repository. Page through it a few times by hitting space or down. You will see how far it goes back. Hit q to stop viewing it, and return to the command line.