Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to lock a tag

Barbara Nie
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 9, 2021

Is there a way to lock (no rename, no move, no deletion) a tag?

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Champion
February 9, 2021

Hi @Barbara Nie,

Welcome to Atlassian Community!

There is no option in Git for locking a tag, and you cannot prevent someone from editing the tag locally. What you could to is add a hook that prevent them from pushing any tag updates to the remote repository. Have a look at this Stack Overflow question for some ideas on how to do that.

Barbara Nie
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2021

Thank you

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events