Git & GitHub – Complete Tutorial

End-to-end version control training covering Git fundamentals, GitHub collaboration, branching strategies, pull requests, and CI/CD integration.

← Back to Training

Module 1: Version Control Basics

Module 2: Introduction to Git

Module 3: Installing & Configuring Git

git --version
git config --global user.name "Your Name"
git config --global user.email "email@example.com"

Module 4: Basic Git Commands

git init
git status
git add .
git commit -m "Initial commit"
git log

Module 5: Working with Files

git diff
git restore file.txt
git reset HEAD file.txt

Module 6: Branching Concepts

git branch
git branch feature-login
git checkout feature-login

Module 7: Merging & Conflicts

git merge feature-login

Module 8: Introduction to GitHub

Module 9: Connecting Git to GitHub

git remote add origin https://github.com/username/repo.git
git branch -M main
git push -u origin main

Module 10: Clone, Fetch & Pull

git clone https://github.com/username/repo.git
git fetch
git pull

Module 11: Pull Requests (PR)

Module 12: GitHub Branching Strategy

Module 13: GitHub Issues & Projects

Module 14: GitHub Actions (CI/CD)

Automate build & test pipelines.

name: CI
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - run: mvn test

Module 15: GitHub Security & Best Practices

Module 16: GitHub with Jenkins

Module 17: Real-Time Project Workflow

Module 18: Interview Questions & Real-Time Usage