OS Manuals

/usr/bin/git-crypt

Transparent file encryption in git

From git-crypt 0.8.0-r7 (os), captured 2026-11-05 by running git-crypt --help (exit 0). permalink

Usage: /usr/bin/git-crypt COMMAND [ARGS ...]

Common commands:
  init                 generate a key and prepare repo to use git-crypt
  status               display which files are encrypted
  lock                 de-configure git-crypt and re-encrypt files in work tree

GPG commands:
  add-gpg-user USERID  add the user with the given GPG user ID as a collaborator
  unlock               decrypt this repo using the in-repo GPG-encrypted key

Symmetric key commands:
  export-key FILE      export this repo's symmetric key to the given file
  unlock KEYFILE       decrypt this repo using the given symmetric key

Legacy commands:
  init KEYFILE         alias for 'unlock KEYFILE'
  keygen KEYFILE       generate a git-crypt key in the given file
  migrate-key OLD NEW  migrate the legacy key file OLD to the new format in NEW

See 'git-crypt help COMMAND' for more information on a specific command.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.