Decode with Parth
Posted on
Uncategorized

Git Workshop

Author

🚀 GitHub Complete Workshop

From Zero to Collaborating Like a Pro

Git Basics Push & Pull Branching Merging

📌 What is Git?

Git is a version control system that tracks changes in your code.

Key Features:
  • Version Control
  • Collaboration
  • Distributed system
  • Safe history tracking

⚔️ Git vs GitHub

Git: Tool on your computer

GitHub: Online platform

⚙️ Setup Git

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

📦 Git States

Modified → Staged → Committed

📁 Init & Clone

git init git clone https://github.com/user/repo.git

➕ Git Add

git add . git add index.html

💾 Git Commit

git commit -m "Initial commit"

📊 Status & Logs

git status git log --oneline

🔍 Git Diff

git diff git diff --staged

🌐 Remote

git remote add origin URL git push origin main git pull origin main

🌿 Branching

git branch feature git checkout -b feature git merge feature

⚠️ Merge Conflicts

Resolve conflicts manually → git add → git commit

🔥 Advanced

git rebase main git stash


Made with ❤️ for GitHub Workshop