TGViewer
Web Development Web Development @webdevcoursefree ยท 79.7K subscribers
Post #3368 5.39K
โœ… Git Basics You Should Know ๐Ÿ› ๏ธ๐Ÿ“

Git is a version control system used to track changes in your code, collaborate with others, and manage project history efficiently.

1๏ธโƒฃ What is Git?
Git lets you save snapshots of your code, go back to previous versions, and collaborate with teams without overwriting each otherโ€™s work. ๐Ÿ“ธ

2๏ธโƒฃ Install & Setup Git
git --version # Check if Git is installed
git config --global user.name "Your Name"
git config --global user.email "you@example.com"

3๏ธโƒฃ Initialize a Repository
git init # Start a new local Git repo ๐Ÿš€

4๏ธโƒฃ Basic Workflow
git add . # Stage all changes โž•
git commit -m "Message" # Save a snapshot ๐Ÿ’พ
git push # Push to remote (like GitHub) โ˜๏ธ

5๏ธโƒฃ Check Status & History
git status # See current changes ๐Ÿšฆ
git log # View commit history ๐Ÿ“œ

6๏ธโƒฃ Clone a Repo
git clone https://github.com/username/repo.git ๐Ÿ‘ฏ

7๏ธโƒฃ Branching
git branch feature-x # Create a branch ๐ŸŒณ
git checkout feature-x # Switch to it โ†”๏ธ
git merge feature-x # Merge with main branch ๐Ÿค

8๏ธโƒฃ Undo Mistakes โ†ฉ๏ธ
git checkout -- file.txt # Discard changes
git reset HEAD~1 # Undo last commit (local)
git revert <commit_id> # Revert commit (safe)

9๏ธโƒฃ Working with GitHub
โ€“ Create repo on GitHub โœจ
โ€“ Link local repo:
git remote add origin <repo_url>
git push -u origin main

๐Ÿ”Ÿ Git Best Practices
โ€“ Commit often with clear messages โœ…
โ€“ Use branches for features/bugs ๐Ÿ’ก
โ€“ Pull before push ๐Ÿ”„
โ€“ Never commit sensitive data ๐Ÿ”’

๐Ÿ’ก Tip: Use GitHub Desktop or VS Code Git UI if CLI feels hard at first.

๐Ÿ’ฌ Tap โค๏ธ for more!
  • โค 11
  • ๐Ÿ‘ 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 โ†’