Skip to content

Instantly share code, notes, and snippets.

@GeorgiosGoniotakis
Last active July 17, 2019 19:39
Show Gist options
  • Save GeorgiosGoniotakis/26198c79137667b50a6f3a4ed614d448 to your computer and use it in GitHub Desktop.
Save GeorgiosGoniotakis/26198c79137667b50a6f3a4ed614d448 to your computer and use it in GitHub Desktop.
Usage of git-secret
#!/bin/bash
gpg --version # Check GPG installation
git --version # Check Git installation
git-secret --version # Check git-secret installation
gpg --list-keys # Make sure that your GPG key is listed here
git init # Initialize the repository if you have not done it already
git secret init # Initialize the repository using git-secret
git secret tell email@example.com # Add a user
git secret whoknows # Get a list of which users are attached on the repo
git secret add file.txt # Add a file on the encryption list
git secret hide # Encrypt files of the list
# To decrypt the file
# Make sure you have the secret key
git secret reveal # Decrypts the file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment