Skip to content

Instantly share code, notes, and snippets.

@maxfi
Last active May 16, 2016 11:26
Show Gist options
  • Save maxfi/68b53d74a7b784776f89efd2d63ff2eb to your computer and use it in GitHub Desktop.
Save maxfi/68b53d74a7b784776f89efd2d63ff2eb to your computer and use it in GitHub Desktop.
Install git-crypt and references
#!/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