Git and GitHub are two of the coolest technologies around for developers. Git, despite its complexity and rather terse beginnings, is the version control tool of choice for everyone from web designers to kernel developers.

Working tree, staging area, and Git directory
Let me share a few quick pointers to get you started on Git:
You can read more on these concepts from : https://git-scm.com/book/en/v2/