Setup Your Enviroment

While our focus will be on building Git functionality from the ground up, we will utilize commands like git log --oneline --graph to inspect and understand the modifications within our Git repository.

This approach will help us visualize the commits and the branching structure.

Prerequisites

Step 1: Install Git

Skip this if you have git installed.

To verify if git is installed run following in the terminal:

git --version

Windows

  1. Download Git from git-scm.com.
  2. Run the installer and follow the prompts, choosing the default options.
  3. Open Git Bash from the Start menu after installation.

Mac

  1. If you don’t have Homebrew installed, visit brew.sh to set it up.
  2. Install Git using Homebrew:
    brew install git
    

Linux