From 1d4a2e6460162b920571c7b27cd2ec2dfb92ab3d Mon Sep 17 00:00:00 2001 From: Chris Thompson Date: Fri, 3 Feb 2017 16:56:42 -0600 Subject: [PATCH] [readme] Add diff technique to confirm encryption --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 1aeccc8..fcbe995 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,13 @@ That's all you need to do - after git-crypt is set up (either with `git-crypt init` or `git-crypt unlock`), you can use git normally - encryption and decryption happen transparently. +To check if a file will be encrypted before committing it: + + git add path/new/file + git diff --cached + +The diff output will show `Binary files ... ... differ` instead of the contents of the file. + Current Status --------------