🌱 BasicsCommonly used

How to pull changes from a remote repository

Download and integrate changes from a remote repository.

Pull current branch
git pull

Fetches and merges changes from the tracked remote branch.

When to use: Standard way to update your local branch.

Pull with rebase (cleaner history)
git pull --rebase

Fetches remote changes and replays your local commits on top. Avoids merge commits.

When to use: When you want a linear history without merge commits.

Fetch without merging
git fetch origin

Downloads remote changes without applying them. Lets you inspect before merging.

When to use: When you want to see what changed before integrating.

Fetch all remotes
git fetch --all

Downloads changes from all configured remotes.

← Back to Git Reference