Git is a distributed version control system that allows multiple developers to work on the same project simultaneously. It tracks changes made to files and directories, enabling developers to collaborate effectively and manage the project's history efficiently.
GitHub is a web-based platform that provides hosting services for Git repositories. It allows developers to store, manage, and share their code with others. GitHub offers features such as issue tracking, pull requests, and collaboration tools to streamline the development process. It is widely used by open-source projects and software development teams.
Install Git on your system (Linux).
sudo apt-get install git
Configuring User information used across all local repositories.
git config -l
It is used to list all the configurations that are set in the Git repository.
Set the username for the Git repository.
git config --global user.name "Your Full Name"
Set the email address for the Git repository.
git config --global user.email "Email Address"
git config --global color.ui auto
git init Initializes a new Git repository.
git init
Add files to the staging area.
git add .
Add a specific file to the staging area.
git add <file_name>