GitRemotes

git pull

Fetches commits from a remote and merges (or rebases) them into the current branch.

Syntax

git pull [--rebase] <remote> <branch>

Examples

Pull with rebase instead of a merge commit

git pull --rebase origin main

Related commands