What happens to a tag on a deleted branch?

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!

1 Like

The tag and commit would still exist if the branch is deleted. A branch is simply a way to track a collection of commits.

1 Like