Last active
May 16, 2016 11:26
-
-
Save maxfi/68b53d74a7b784776f89efd2d63ff2eb to your computer and use it in GitHub Desktop.
Install git-crypt and references
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 | |
# REFERENCES: | |
# - https://github.com/AGWA/git-crypt | |
# - http://manpages.ubuntu.com/manpages/wily/man1/git-crypt.1.html | |
# - https://flatlinesecurity.com/posts/git-crypted/ | |
# - http://ebarnouflant.com/posts/3-using-git-crypt-to-transparently-encrypt-sensitive-data-in-a-git-repository | |
# - http://www.seanh.cc/posts/git-crypt | |
# - http://blog.it-agenten.com/2015/10/tool-of-the-week-git-crypt/ | |
# - https://www.coveros.com/git-crypt/ | |
# | |
# - Using with keybase.io: https://blog.starkandwayne.com/2015/07/02/secure-your-boshworkspace-with-git-crypt/ | |
# - Encrypt directory: https://github.com/AGWA/git-crypt#gitattributes-file | |
# | |
# - Alternatives: | |
# - https://github.com/elasticdog/transcrypt | |
# ------------------ | |
# Script setup | |
# ------------------ | |
# Exit on failure. | |
set -e | |
# Check for root. | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
# ------------------ | |
# Install and make | |
# ------------------ | |
cd | |
sudo apt-get install -y build-essential libssl-dev | |
git clone https://github.com/AGWA/git-crypt.git | |
cd git-crypt | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment