Summary

A summary of the contents covered in the chapter.

This chapter introduced Git, GitHub, repositories, and Git commands to work locally and independently.

We started with the background to source control and introduced Git as a source control system. We then looked into GitHub, an online platform to create and manage repositories. We went through the following:

  • Create a repository.
  • Create a file through GitHub’s web interface.
  • Commit the changes using the interface.

We observed that making changes may lead to issues when collaborating with others on the project as multiple collaborators might change the same file.

After that, we looked into how you can work on that same repository locally. We introduced Git commands and understood the different areas your files/changes were in at a certain point. Changes can be in the following areas:

  • Working (Untracked)
  • Staging
  • Committed

We explored the areas and commands by looking at the following:

  • Cloning a repository.
  • Tracking changes.
    • Staging changes in Git.
  • Committing changes in Git.

Get hands-on with 1000+ tech skills courses.