© Mariot Tsitoara  2020
M. TsitoaraBeginning Git and GitHubhttps://doi.org/10.1007/978-1-4842-5313-7_5

5. Commits

Mariot Tsitoara1 
(1)
Antananarivo, Madagascar
 

The previous chapter taught you a little bit about the essential features of Git. You should know how to check the history log and see the changes made to the current version. But Git commits are a tough bone to bite, so we are going to talk about them more in this chapter. First, we will explore (again) the inner working of Git and its terminology. Then, we’ll learn how to view and check previous versions. Let’s go!

The three states of Git

Before talking about commits in detail, we have to go back to the basics and relearn about how Git works. You surely remember the three states that a file ...

Get Beginning Git and GitHub: A Comprehensive Guide to Version Control, Project Management, and Teamwork for the New Developer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.