What happens to a tag on a deleted branch? #23918
Answered
by
mcaskill
acud
asked this question in
New to GitHub
-
Hi there! My question is quite simple: I’d like to tag a commit on a feature branch and push that commit to my repository and then delete the branch. What happens to the tag in that case? I assume that the release in the github page will be untouched, but will the commit be possible to checkout later through the terminal when I checkout the tag directly? Many thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
mcaskill
Aug 17, 2021
Replies: 1 comment
-
The tag and commit would still exist if the branch is deleted. A branch is simply a way to track a collection of commits.
What happen to Git tags pointing to a removed commit
git, git-branch, git-tag
answered by |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The tag and commit would still exist if the branch is deleted. A branch is simply a way to track a collection of commits.
What happen to Git tags pointing to a removed commit
answered by
René Link
on 03:33PM - 22 Oct 15 UTC