Commit

Finally, we can type

git commit -m “First Commit”

to commit the staged files/directories to the repository, always with an associated message to identify the changes which have been made.

Once committed, we can always go back to this version, but changes are not recorded until you commit them.

When an item of work is complete, we commit that work to the repository with a comment that describes this version.

If I am coding, every change I make is submitted, perhaps a commit every 20 minutes?

Any files which have been staged will now be committed to the repository and we are now using version control. Each version is uniquely identified by a hash value.