1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/git-fetch.md
2016-12-02 13:19:05 +00:00

514 B

git fetch

Download objects and refs from a remote repository.

  • Fetch the latest changes from the default remote upstream repository (if set):

git fetch

  • Fetch new branches from a specific remote upstream repository:

git fetch {{remote_name}}

  • Fetch the latest changes from all remote upstream repositories:

git fetch --all

  • Also fetch tags from the remote upstream repository:

git fetch --tags

  • Delete local remote-tracking branches that have been deleted upstream:

git fetch --prune