about summary refs log tree commit diff stats
path: root/notes
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-10 22:50:13 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-10 22:50:13 +0200
commit19f7840789fff99d3dd9634d2793c07c5b20e34e (patch)
treee09bd775c949876dbc552c4afa5c2e32ef70c33a /notes
parentchore(treewide): Remove git crypt (diff)
downloadnixos-config-19f7840789fff99d3dd9634d2793c07c5b20e34e.tar.gz
nixos-config-19f7840789fff99d3dd9634d2793c07c5b20e34e.zip
chore(treewide): Fully remove any last mentions of git-crypt
Diffstat (limited to 'notes')
-rw-r--r--notes/git_crypt.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/notes/git_crypt.md b/notes/git_crypt.md
index d78e6c46..b123a77b 100644
--- a/notes/git_crypt.md
+++ b/notes/git_crypt.md
@@ -7,14 +7,15 @@ sudo nix store delete --ignore-liveness <source_path>
 ```
 
 # How to remove git crypt [1]:
+
 To avoid multiple commits and moved around files the following worked for me:
+
 - checkout and unlock repo
 - remove `[filter "git-crypt"]` and `[diff "git-crypt"]` sections from `.git/config`
 - remove corresponding lines in `.gitattributes` and add changes to the index
-- remove symmetric key (if any) `rm .git/git-crypt -r`
-- remove (encrypted) path only from the index git rm --cached foobar
-- re-add local (unencrypted) path to the index git add foobar
+- remove symmetric key (if any) `rm --recursive .git/git-crypt`
+- remove (encrypted) path only from the index `git rm --cached foobar`
+- re-add local (unencrypted) path to the index `git add foobar`
 - commit and push the changes
 
-
 [1]: https://github.com/AGWA/git-crypt/issues/170#issuecomment-788820507