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
Community showcase
Published yesterday in Agile

Managing Projects in Several Jiras at the Same Time

Have you ever noticed that fixing specific problems might be a door opener for a bigger challenge, affecting a wider audience? This was exactly the case when we, as a service company working with mul...

129 views 3 12
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