FahamLah

Commands

git pull

git pull [--rebase | --no-rebase | --ff-only]

Risk: Careful

What it does

Fetches, then joins the new commits into your branch.

When to use it

To catch up with your team before you push.

Example

$ git pull

Get the latest work from GitHub.

$ git pull --rebase

Put your new commits on top of theirs.

$ git pull --no-rebase

Join with a merge commit.

$ git config pull.rebase false

Choose merge as your usual way to pull.