A crash course on Git
Git is the most popular source code management system available these days, and it has now become mandatory for all developers to learn Git, at least the basic stuff. In this crash course, we will learn about all basic Git operations and build from them in the subsequent chapters.
Git is a distributed version control system. This means that every Git repository is a copy of the original, and you can replicate that to a remote location if needed. In this chapter, we will create and initialize a local Git repository and then push the entire repository to a remote location.
A Git repository in a remote central location is also known as a remote repository. From this central repository, all developers sync changes in their local repository, similar to what’s shown in the following diagram:
Figure 2.1 – Git distributed repository model
First, let’s install Git locally and initialize a local repository. We will...