It would be impossible to talk about GitHub without talking about Git. Git and Github complement each other, they both have specific uses, but they go well together. As a newbie, you should have heard of these terms and wondered what exactly is Git and GitHub. Git and Github are well known to developers because they go hand in hand, and to use GitHub, you should also be familiar with Git.
This article will outline the basics of working with Git and GitHub for beginners. We'll go over what Git and GitHub are, why you need a version control system, and some Git commands you should know.
Prerequisites
This article assumes that you already have the following:
A Command-Line Installed
GitHub Account
Code Editor (i.e VSCode)
What is Git?
Git is an open-source version control system that manages changes made in a source code. It allows you to perform different operations, such as fetching or pushing data from the version control server. If you're working in a large team with multiple developers, Git makes it easier for team members to work on the same project without disrupting work.
Git manages a repository, and a repository contains the history of changes made to a file related to a project or directory.
The Three stages of Git
The stages in Git are one of the most important concepts to learn, Git follows a three-stage process, and they include the following:
Working Directory
This is a folder on your computer that contains projects and application files. This directory may or may not be managed by Git, but Git is aware of them.
Staging Area
This is a holding area for queuing changes for the next commit. In the Staging area, you can move files in and out without impacting the repository and the history of every change made.Commit Stage
This is the stage where you make a commit. Git takes the files in the staging area and stores them permanently in a GitHub directory.
















