2015-12-29 22:54:20 +00:00
|
|
|
# git fetch
|
|
|
|
|
2016-01-21 12:08:45 +00:00
|
|
|
> Download objects and refs from a remote repository.
|
2015-12-29 22:54:20 +00:00
|
|
|
|
2016-10-27 05:55:22 +01:00
|
|
|
- Fetch new branches from upstream, and update local remote-tracking branches:
|
2015-12-29 22:54:20 +00:00
|
|
|
|
|
|
|
`git fetch {{remote_name}}`
|
|
|
|
|
2016-01-21 12:08:45 +00:00
|
|
|
- Fetch the latest changes from all remote git servers:
|
2015-12-29 22:54:20 +00:00
|
|
|
|
|
|
|
`git fetch --all`
|
2016-10-27 05:55:22 +01:00
|
|
|
|
|
|
|
- Also fetch tags from the remote repository:
|
|
|
|
|
|
|
|
`git fetch --tags`
|