Apply Tag on specific commits or files

Hi Team,

We need to know, how to apply a tag on specific commits. Here is the scenario we ran into

we have 10 commits happend on branch in GIT repository, where we want to apply a tag on specific commits like 1-7 and 9th commit, exclude 8th and 10th commits. How to handle this scenario?
please provide us any documentaion/steps to follow which supports this requirement.

Regards,
Sabarinath

1 answer

A given tag in Git can only be applied to one commit.  A tag is basically just an alias for a commit ID (SHA1 hash).

 

What are you trying to accomplish by applying a tag to multiple commits?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Agile

How Davin Studer gets Confluence to do everything he wants it to do...except dishes

  @Davin Studer holds many interests, including but not limited to health tech and Star Trek. Read on to discover more about Davin, from his favorite Confluence macros to his favorite lit...

154 views 1 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you