Skip to content

PEC-CSS/Git-Github---Hands-On-Practice-Session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

Version Control? I Hardly Know Her...

Welcome to our hands-on Git & GitHub session! This workshop will take you from zero to hero in version control.

What You'll Learn

By the end of this session, you'll be able to:

  • Understand what version control is and why it matters
  • Set up Git on your machine
  • Create and manage repositories
  • Make commits like a pro
  • Collaborate with others using GitHub
  • Handle branches and merge conflicts
  • Use essential Git commands in your daily workflow

Prerequisites

  • A computer (Windows, Mac, or Linux)
  • Enthusiasm to learn!
  • No prior Git experience required

Setup Instructions

1. Install Git

Windows: Download from git-scm.com
Mac: Run git --version in Terminal (will prompt install if needed)
Linux: Run sudo apt-get install git (Ubuntu/Debian) or sudo yum install git (Fedora)

2. Create a GitHub Account

Sign up at github.com if you haven't already.

3. Configure Git

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

Session Outline

  1. Introduction to Version Control - Why do we need this?
  2. Git Basics - Your first repository
  3. GitHub Fundamentals - Taking it online
  4. Branching & Merging - Working in parallel
  5. Collaboration - Pull requests and teamwork

Essential Commands Cheatsheet

# Initialize a new repository
git init

# Clone an existing repository
git clone <url>

# Check status
git status

# Add files to staging
git add <file>
git add .

# Commit changes
git commit -m "Your message"

# Push to remote
git push origin main

# Pull from remote
git pull origin main

# Create a new branch
git branch <branch-name>

# Switch branches
git checkout <branch-name>

# Merge branches
git merge <branch-name>

Resources

Contributers

Mananwebdev160408
Manan Gupta
Savy011
Savy
RAGHAVS1304
Raghav

Remember: Everyone was a beginner once. Don't be afraid to make mistakes—that's what version control is for! 😊

About

This repo is made to demonstrate the practical implementation of Git and GitHub concepts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 10