Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to lock a tag

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 Leader Feb 09, 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.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events