From e2a3b2b6dbd217a7ea0ac94d9e0588fb91b1ce3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wesley=20Gon=C3=A7alves?= Date: Mon, 11 May 2020 02:57:59 -0300 Subject: [PATCH 1/2] fix outdated information about pushing tags Fix information about pushing only annotated tags Github issue #1426 --- book/02-git-basics/sections/tagging.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/02-git-basics/sections/tagging.asc b/book/02-git-basics/sections/tagging.asc index ae6e081ce..b0e9030ac 100644 --- a/book/02-git-basics/sections/tagging.asc +++ b/book/02-git-basics/sections/tagging.asc @@ -220,7 +220,7 @@ Now, when someone else clones or pulls from your repository, they will get all y [NOTE] .`git push` pushes both types of tags ==== -Pushing tags using `git push --tags` does not distinguish between lightweight and annotated tags; there is no simple option that allows you to select just one type for pushing. +Pushing tags using `git push --tags` does not distinguish between lightweight and annotated tags; However, if you use `git push --follow-tags` only annotated tags will be pushed to the remote. ==== ==== Deleting Tags From c2ae4012af676dbda3ab40c83fbe835b59545f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wesley=20Gon=C3=A7alves?= Date: Tue, 12 May 2020 22:10:12 -0300 Subject: [PATCH 2/2] Clarify the explanation of the options available to push tags Co-authored-by: Ben Straub --- book/02-git-basics/sections/tagging.asc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/book/02-git-basics/sections/tagging.asc b/book/02-git-basics/sections/tagging.asc index b0e9030ac..30c323938 100644 --- a/book/02-git-basics/sections/tagging.asc +++ b/book/02-git-basics/sections/tagging.asc @@ -220,7 +220,8 @@ Now, when someone else clones or pulls from your repository, they will get all y [NOTE] .`git push` pushes both types of tags ==== -Pushing tags using `git push --tags` does not distinguish between lightweight and annotated tags; However, if you use `git push --follow-tags` only annotated tags will be pushed to the remote. +`git push --tags` will push both lightweight and annotated tags. +There is currently no option to push only lightweight tags, but if you use `git push --follow-tags` only annotated tags will be pushed to the remote. ==== ==== Deleting Tags