This is an old revision of the document!
apt install software-properties-common
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
apt install git-lfs
git lfs install
git tag new old git tag -d old git push origin :refs/tags/old git push --tags
The colon in the push command removes the tag from the remote repository. If you don't do this, git will create the old tag on your machine when you pull.
Ensure that the other developers/users remove the deleted tag by running the following command:
git pull --prune --tags
if [ "$refname" == "refs/heads/master" ]; then if [ "$USER" != "<someadminuser>" ]; then echo "POLICY: you are not allowed to change the master branch !" exit 1 else echo "POLICY: $USER allowed to change the master branch ..." fi fi
git config receive.denyCurrentBranch ignore
Misc: set active branch in bare repo: - git symbolic-ref HEAD refs/heads/thebranch
Links: Tech Info … Devops Info