⬇️ git pull vs git fetch
| Command | What it does |
|---|---|
| git fetch | Downloads remote changes but does NOT merge — safe preview |
| git pull | Downloads AND automatically merges remote changes |
> 🎓 Think of fetch as checking your email preview, and pull as actually downloading and opening the attachments!
⬇️ Pull Latest Changes from GitHub on 🪟 Windows 11
Microsoft Windows [Version 10.0.22631.3007] (Windows 11 Pro x86_64)
(c) Microsoft Corporation. All rights reserved.
C:\Users\Student># Pull and merge remote changes into current branch
🖥️ 🪟 Windows 11 Output:
🔍 Fetch Without Merging (Safe Inspection)
Microsoft Windows [Version 10.0.22631.3007] (Windows 11 Pro x86_64)
(c) Microsoft Corporation. All rights reserved.
C:\Users\Student># Download remote changes without touching your working files
🔄 Keep Feature Branch Updated with Main (Best Practice)
Microsoft Windows [Version 10.0.22631.3007] (Windows 11 Pro x86_64)
(c) Microsoft Corporation. All rights reserved.
C:\Users\Student>git switch feature-auth
> 💡 Always git pull before starting new work to avoid conflicts with your teammates changes!
