diff --git a/pages/common/git-fetch.md b/pages/common/git-fetch.md index 3dfd3fed86..10aa148aa6 100644 --- a/pages/common/git-fetch.md +++ b/pages/common/git-fetch.md @@ -2,10 +2,14 @@ > Download objects and refs from a remote repository. -- Fetch new branches and update remote-tracking branches: +- 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` diff --git a/pages/common/git-tag.md b/pages/common/git-tag.md index 8c00e16192..2dd8a2306f 100644 --- a/pages/common/git-tag.md +++ b/pages/common/git-tag.md @@ -18,3 +18,7 @@ - Delete the tag with the given name: `git tag -d {{tag_name}}` + +- Get updated tags from upstream: + +`git fetch --tags`