Skip to content
  • Pulling & Syncing · Git & GitHub

Pulling & Syncing

LearnViaNotes @learnvianotes· 1 min read

Updating your local repository to match remote updates on GitHub.

Running a Pull

Shell
# Fetch and merge remote changes
git pull origin main

Git Fetch vs Git Pull

It is critical to distinguish between fetch and pull:

git fetch Downloads remote changes to database only Safe (doesn't modify working files)

git pull Downloads remote changes + immediately merges Active (can cause merge conflicts)

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report