Git Command Guide Used During Fab Academy, I used Git as a version control system to manage and update my website repository hosted on GitLab . Below are the main Git commands I used from the first commit to weekly updates. 1. Initial Repository Setup (First Commit) git init Initializes a new local Git repository in my project folder so Git can start tracking files. git remote add origin repository_url Connects my local repository to the remote repository (GitLab). git branch -M main Renames the default branch to main. git add . Stages all project files to be included in the first commit. git commit -m "Initial commit" Creates the first commit, saving the project files into version history. git push -u origin main Uploads the project to the remote repository for the first time and sets the upstream branch for future pushes. 2️. Weekly Documentation Updates For each weekly assignment, I used the following commands: git add . Stages all new or modified files. git commit -m "Week 01 documentation update" Saves changes with a descriptive message (example: weekly assignment update). git push Uploads the latest committed changes to the remote repository. 3️. Checking Repository Status git status Shows the current state of files (modified, staged, or untracked). git log Displays the commit history. git pull Fetches and merges updates from the remote repository. 4️. SSH Key Setup for Secure Authentication ssh-keygen -t ed25519 -C your_email@example.com Generates an SSH key for secure authentication. cat ~/.ssh/id_ed25519.pub Displays the public key to copy and add to GitLab.