TGViewer
Web Development Web Development @webdevcoursefree ยท 79.7K subscribers
Post #3333 4.62K
โœ… Version Control with Git & GitHub ๐Ÿ—‚๏ธ

Version control is a must-have skill in web development! It lets you track changes in your code, collaborate with others, and avoid "it worked on my machine" problems ๐Ÿ˜…

๐Ÿ“Œ What is Git?
Git is a distributed version control system that lets you save snapshots of your code.

๐Ÿ“Œ What is GitHub?
GitHub is a cloud-based platform to store Git repositories and collaborate with developers.

๐Ÿ› ๏ธ Basic Git Commands (with Examples)

1๏ธโƒฃ git init
Initialize a Git repo in your project folder.
git init


2๏ธโƒฃ git status
Check what changes are untracked or modified.
git status


3๏ธโƒฃ git add
Add files to staging area (preparing them for commit).
git add index.html
git add. # Adds all files


4๏ธโƒฃ git commit
Save the snapshot with a message.
git commit -m "Added homepage structure"


5๏ธโƒฃ git log
See the history of commits.
git log


๐ŸŒ Using GitHub

6๏ธโƒฃ git remote add origin
Connect your local repo to GitHub.
git remote add origin https://github.com/yourusername/repo.git


7๏ธโƒฃ git push
Push your local commits to GitHub.
git push -u origin main


8๏ธโƒฃ git pull
Pull latest changes from GitHub.
git pull origin main


๐Ÿ‘ฅ Collaboration Basics

๐Ÿ”€ Branching & Merging
git branch feature-navbar
git checkout feature-navbar
# Make changes, then:
git add.
git commit -m "Added navbar"
git checkout main
git merge feature-navbar


๐Ÿ” Pull Requests
Used on GitHub to review & merge code between branches.

๐ŸŽฏ Project Tip:
Use Git from day 1โ€”even solo projects! It builds habits and prevents code loss.

๐Ÿ’ฌ React โค๏ธ for more!
  • โค 16
  • ๐Ÿ‘ 2
More from @webdevcoursefree
  1. Oct 16, 2026๐——๐—ฎ๐˜๐—ฎ ๐˜€๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ช๐—ถ๐˜๐—ต ๐—”๐—œ๐Ÿ˜ Future Ready Data Scienโ€ฆ
  2. Oct 16, 2026๐ŸŒ Web Development Roadmap โ€” Part 18 HTML Lists Lists are used whenever information needsโ€ฆ
  3. Oct 14, 2026๐ŸŒ Web Development Roadmap โ€” Part 17 HTML Images โ€” <img> Tag Images make webpages more visโ€ฆ
  4. Oct 13, 2026๐—ง๐—ข๐—ฃ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐—ง๐—ข ๐—•๐—ข๐—ข๐—ฆ๐—ง ๐—ฌ๐—ข๐—จ๐—ฅ ๐—ฆ๐—ž๐—œ๐—Ÿ๐—Ÿ๐—ฆ ๐—œ๐—ก ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! Explorโ€ฆ
  5. Oct 12, 2026For example: Go to Profile โ†’ <a> Submit Form โ†’ <button> Open Article โ†’ <a> Delete Accountโ€ฆ
  6. Oct 12, 2026๐ŸŒ Web Development Roadmap โ€” Part 16 HTML Links โ€” Tag Links are one of the most importantโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’