Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# For the git repo in the current directory, this script will re-initialize
# git-crypt with a new secret and re-add all the gpg keys.
#
# Purpose: by running this script, users who used to have their GPG keys in this
# git-crypt'd repo will not be able to view future changes.
#
# Notes:
# 1. Before running this you should have already removed GPG keys of old users.
@wols
wols / git-crypt.md
Created September 3, 2025 12:04 — forked from fowlmouth/git-crypt.md
git-crypt + GPG guide

git-crypt guidance

Some repositories have git-crypt enabled, which encrypts certain files. This doc describes how to add and remove users, using their GPG keys, and has associated scripts. (You can also just share the repo's symmetric key, which is simpler, but not covered here.)

Understanding git-crypt

A repo that has been git-crypt'd should have in its repo:

  • .gitattributes - defines which files should be encrypted
  • .git-crypt/keys/default/0/*.gpg - .gpg file for every user (Each .gpg file is the repo's symmetric encryption key, which has been encrypted for a particular user with their individual public key. The filename is the user key's fingerprint.)

NTP statistics - Next Generation

https://ntpstatsng.gitlab.io/ntpstatsng/ntpstatsng/main/

IMPORTANT

This software is under the heavy development and considered ALPHA quality till the version hits >=1.0.0.
Things might be broken, not all features have been implemented and APIs will be likely to change.

YOU HAVE BEEN WARNED.