Is there a way to lock a GIT tag?

I would like to be able to lock a GIT tag so that it cannot be moved or deleted for product release control. I thought I would be able to do this with a Lightweight Tag based on the documentation but found by experiment that Lightweight Tags can also be moved.

  • Why must I force push after changing a commit message?
  • Git Remove remote history
  • Remote branch is both behind and ahead of master
  • How to block specific pushes with github webhooks?
  • How to dynamically pick a git branch to use in Jenkins build
  • Count logical lines of code with git
  • Why doesn't git format-patch work for stashes?
  • Js with git handle control version with the new module system client side
  • What do the git statistics mean?
  • git commit metrics
  • Stage hunk non-interactively in git
  • how to git commit a whole folder?
  • One Solution collect form web for “Is there a way to lock a GIT tag?”

    You can’t prevent some one from updating tags in their local copy of the repository.

    You could prevent people from pushing tag updates to a remote repository by putting an update hook on the remote repository. This question has some ideas that might get you started on this path.

    Depending on what you’re trying to do you could also consider using signed tags (git tag -s ...); this creates a tag that is cryptographically signed using GPG. With an appropriate GPG configuration you can verify that a tag has been signed by a trusted party. This article discusses the use of signed tags.

    Git Baby is a git and github fan, let's start git clone.