Introduction

Git is a distributed version control system that tracks changes in files and coordinates work among multiple developers. It allows for efficient collaboration and management of projects.

Concepts

Repository

A repository (repo) is a portal/storage area that hosts all of your project’s files and folders, as well as their history.

Commit

A commit is a snapshot of changes made to the project’s files or folders. Committing your changes is equivalent to “saving” changes made to a file. Each commit has a unique identifier and a message describing the changes.

Branch

A branch is a parallel version of a repository, allowing you to work on different features or fixes without affecting the main codebase.

Merge

Merging combines changes from one branch into another, typically used to integrate features or fixes into the main codebase.

Pull Request (PR)

A pull request is a request to merge changes from one branch into another. It allows for review and discussion before the changes are merged.

Setup

Installation

Download and install Git from git-scm.com

Configuration

  1. Open up a terminal on your local machine
  2. Run the following commands one by one and set your name and email address:
git config --global user.name "your username"
git config --global user.email "[email protected]"