Skip to content

Commit 3f221b6

Browse files
git-crypt (#56)
* Configure Git attributes `filter` and `diff` to use `git-crypt` setup Ensured to exclude Git specific `.gitattributes` and `.gitignore` files. Epic GH-33 Depends on GH-35 GH-49 GH-48 <---------------------------------------------------------------------> * Import trusted GPG keys for git-crypt Initialized git-crypt for the repository with `git-crypt init`. Added GPG keys of all core team members by running the `git-crypt add-gpg-user --trusted --no-commit <ID>` command where `--no-commit` flag prevents automatic commit of generated files while `--trusted` assumes the GPG user IDs are trusted. Epic GH-33 Depends on GH-35 GH-49 Resolves GH-48
1 parent 955cd7c commit 3f221b6

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

.git-crypt/.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Do not edit this file. To specify the files to encrypt, create your own
2+
# .gitattributes file in the directory where your files are.
3+
* !filter !diff
4+
*.gpg binary
Binary file not shown.
Binary file not shown.

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@
77
# References:
88
# https://git-scm.com/docs/gitattributes
99
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#Keyword-Expansion
10+
# https://github.com/AGWA/git-crypt
11+
# https://www.gnupg.org
12+
# https://wiki.archlinux.org/index.php/GnuPG
1013

1114
# Automatically perform line feed (LF) normalization for files detected as text and
1215
# leave all files detected as binary untouched.
1316
* text=auto
17+
18+
# +------------+
19+
# + Encryption +
20+
# +------------+
21+
.gitattributes !filter !diff
22+
.gitignore !filter !diff

0 commit comments

Comments
 (0)