FahamLah

Commands

git fetch

git fetch [<remote>]

Risk: Safe

What it does

Downloads news from the remote. Your own branches stay the same.

When to use it

To see what others pushed before you join it in.

Example

$ git fetch

Update origin/main, then look with git status.

$ git fetch --prune

Also forget remote branches that were deleted.