Quick Actions
git fetch
Description
Download objects and refs from another repository.
Command
git fetch
Examples
Fetch from remote
git fetch origin
Fetch all remotes
git fetch --all
Fetch and prune
git fetch --prune origin
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
<remote> |
string | No | Remote repository name |
--all |
string | No | Fetch all remotes |
--prune |
string | No | Remove remote-tracking references that no longer exist |
--tags |
string | No | Fetch all tags |
Command Info
Category:
Remote Operations
Type:
Git
Views:
7
Status:
Active
Tags
remote
download
sync
fetch