-
-
Save apostololeg/fa0fc020fda0f17b897939dea1d93452 to your computer and use it in GitHub Desktop.
Usage of git-secret
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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