🔧 Repository Setup
GCM must be run inside a Git repository.
New Repo (Recommended)
This performs:
- Initialize git-crypt
- Create .gitattributes with secure defaults
- Commit setup + encrypted log entry
Existing Repositories
Supported as long as the repository is clean:
⚠️ Files already committed will remain plaintext in history Rewrite history manually if required.
.gitattributes Rules
Created/updated automatically:
# git-crypt setup (auto-generated)
* filter=git-crypt diff=git-crypt
# Explicit plaintext-only
README.md !filter !diff
*.md !filter !diff
docs/** !filter !diff
.github/** !filter !diff
.gitignore !filter !diff
# Audit logs encrypted:
.git-crypt-logs/** filter=git-crypt diff=git-crypt
Post-Setup
Now add users:
Then push!