tldr/pages/common/git-fetch.md

16 lines
319 B
Markdown

# git fetch
> Download objects and refs from a remote repository.
- Fetch new branches from upstream, and update local remote-tracking branches:
`git fetch {{remote_name}}`
- Fetch the latest changes from all remote git servers:
`git fetch --all`
- Also fetch tags from the remote repository:
`git fetch --tags`