How to understand snapshots in git?

How should snapshots in

git be understood?
is the commit submitted for each modification a snapshot?

Git
Apr.11,2021

Snapshot, as its name implies, is equivalent to a photo. This is used in the process of git rollback. Each commit will form an id, the id value is the snapshot submitted by your project. When you roll back, you can find this id and roll back the content of this commit. The rollback process is explained in detail below.

check the status after initialization. The files are all untracked



commit
git logcommitidid

commit

commitid


git reset
--hard
--soft
--mixed
commitid

.
Menu