Skip to content

Latest commit

 

History

History
116 lines (97 loc) · 2.67 KB

README.md

File metadata and controls

116 lines (97 loc) · 2.67 KB

📚 Day 1: Git Fundamentals & Setup

Duration Level Content

Master the basics of Git version control system

🎯 Learning Objectives

By the end of this day, you will:

  • 🌱 Understand version control concepts
  • 💾 Master Git installation and setup
  • 📝 Learn basic Git commands
  • 🔄 Understand Git workflow
  • 🤝 Collaborate with others

📋 Prerequisites

  • ✅ Git installed on your machine
  • ✅ Basic command line knowledge
  • ✅ Text editor installed
  • ✅ GitHub account created

📑 Topics

1️⃣ Version Control Basics

  • What is version control?
  • Why Git?
  • Distributed vs Centralized VCS
  • Git architecture

2️⃣ Git Installation & Setup

  • Installing Git on different platforms
  • Basic configuration
  • SSH setup
  • Git GUI tools

3️⃣ Basic Git Commands

# Configuration
git config --global user.name "Your Name"
git config --global user.email "[email protected]"

# Repository Operations
git init
git clone
git status
git add
git commit
git push
git pull

# Information Commands
git log
git diff
git show

4️⃣ First Repository

  • Creating a new repository
  • Adding files
  • Making commits
  • Viewing history
  • Understanding the working directory
  • Staging area concepts
  • Repository structure

🛠️ Hands-on Exercises

Exercise 1: Git Setup

  1. Install Git
  2. Configure global settings
  3. Setup SSH keys
  4. Test configuration

Exercise 2: First Repository

  1. Create a new repository
  2. Add files
  3. Make commits
  4. View history
  5. Understand changes

Exercise 3: Clone & Modify

  1. Clone existing repository
  2. Make changes
  3. Stage changes
  4. Commit changes
  5. Push changes

🎮 Interactive Learning

  • Use Git Visualizer Pro to understand repository structure
  • Practice basic commands in sandbox environment
  • Real-time visualization of Git operations

📚 Additional Resources

  • Git official documentation
  • Interactive Git tutorials
  • Git cheat sheets
  • Video tutorials

✅ Knowledge Check

  1. What is version control?
  2. Why use Git?
  3. Basic Git commands
  4. Git workflow
  5. Repository structure

🏆 Achievement Goals

  • Git installed and configured
  • First repository created
  • Multiple commits made
  • Changes pushed to remote
  • Basic commands mastered

Created by Amir Haytham for the Git-A-Head Workshop