Git : Git is an open-source distributive version control system, we can also call Git as a type of Backup, Git holds the history of all kinds of operations that you have done in each updated version, it also tracks the files, holds commit history, and allows you to make changes, undo changes you have made before.Git allows one or more people to work as a team on the same project and we call this process as a collaboration.
Git Workflow Cycle
Here we will go through the basic Git workflow and some basic key concepts.
A working directory is used to modify the files, where it is a directory or folder on the computer which contains all the project or application files. The files within the working directory may or may not be controlled by the Git. There will be a hidden folder called .git folder that contains the actual git repository.
The staging area is also called Index, where the staging area holds /keeps all the files that are in the queue for the next commit. The files which are present in the staging area are not committed yet. we can move the files in and out from the staging area without affecting the git repository and its history of changes.
Once you perform commit operation git sends files from staging area to the repository and once you complete the push operation it will permanently store the changes in the git repository.
Git Repository is the one that contains all the files with respect to the specific project application.Git Repository also contains a commit history and special configurations in it.
GitHub is a Web-Based Hosting service mostly used for version control Systems through Git. It lets you and others work together on projects from anywhere.