# Can you specify a tag \*and\* a branch?

**URL:** <https://discuss.circleci.com/t/can-you-specify-a-tag-and-a-branch/4282>\
**Category:** Build Environment\
**Created:** [May 31, 2016, 10:27am UTC](https://discuss.circleci.com/t/can-you-specify-a-tag-and-a-branch/4282 "2016-05-31T10:27:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [June 2, 2016, 7:28pm UTC](https://discuss.circleci.com/t/can-you-specify-a-tag-and-a-branch/4282/3 "2016-06-02T19:28:19Z")

</div>

This is hard because a tag technically has nothing to do with branches, it’s a pointer to a commit. When using a tag, there can be no branch in a way, or multiple branches if a merge occurred at some point.

Personally I would have the script based everything off the tag. A release tag that follows a certain regex pattern for example would be considered “production”. Unless you’re doing continuous deployment in which case I’d ignore tags and just deploy master or a separate “production” branch.

---

_[View the full topic](https://discuss.circleci.com/t/can-you-specify-a-tag-and-a-branch/4282)._
