How do commits help in tracking changes within a Git repository?

Please login to ask, answer, share, like, and vote.