What is Git?
Git is a distributed version control system that tracks the content in your code. The content stored in Git keeps changing as more code is added, removed, or modified. Git is also able to track code in parallel, where developers can work on different branches and merge content later on.
The most basic Git workflow goes something like this:
You modify files in your working directory, this is where any changes to your files occur, such as additions, deletions.
You stage those changes to prepare them to be committed. The files staged are the only files that can be committed. Consider this transition area for files that are ready to be committed.
You create a commit. This takes your staged files and stores a permanent snapshot to your Git repository.
Benefits of Git
Git allows you to do anything offline because everybody has a copy of their own repository. This allows making branches and merging between branches really easy (we will explain this in more detail later on in the course).
Git was built as a repository for the Linux system. It is really fast and can scale to many thousands of contributors. Git also uses much less space than other VCS
Being a distributed version control system, Git can deal with several remote repositories, so you can collaborate with different groups of people in different ways. Since every contributor has a copy of the repository, you also don't always have to be connected to a central repository system. This allows for several types of workflows such as hierarchical models.