mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-30 14:33:39 +02:00
git-tag, git-fetch: add example for fetching tags (#1128)
This commit is contained in:
parent
669e845d3f
commit
173d353375
2 changed files with 9 additions and 1 deletions
|
@ -2,10 +2,14 @@
|
||||||
|
|
||||||
> Download objects and refs from a remote repository.
|
> 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}}`
|
`git fetch {{remote_name}}`
|
||||||
|
|
||||||
- Fetch the latest changes from all remote git servers:
|
- Fetch the latest changes from all remote git servers:
|
||||||
|
|
||||||
`git fetch --all`
|
`git fetch --all`
|
||||||
|
|
||||||
|
- Also fetch tags from the remote repository:
|
||||||
|
|
||||||
|
`git fetch --tags`
|
||||||
|
|
|
@ -18,3 +18,7 @@
|
||||||
- Delete the tag with the given name:
|
- Delete the tag with the given name:
|
||||||
|
|
||||||
`git tag -d {{tag_name}}`
|
`git tag -d {{tag_name}}`
|
||||||
|
|
||||||
|
- Get updated tags from upstream:
|
||||||
|
|
||||||
|
`git fetch --tags`
|
||||||
|
|
Loading…
Add table
Reference in a new issue