Skip to content

Instantly share code, notes, and snippets.

@jamedge
Last active March 30, 2019 23:59
Show Gist options
  • Save jamedge/2bf472b674b62c94a3c31b7b17362801 to your computer and use it in GitHub Desktop.
Save jamedge/2bf472b674b62c94a3c31b7b17362801 to your computer and use it in GitHub Desktop.
[git-crypt: add file] Add a new file to be enrypted #git #shell #gitcrypt
cd <repo_name>
echo "<file_path_inside_repo> filter=git-crypt diff=git-cryp" >> .gitattributes
git add .gitattributes
git commit
git push origin <branch_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment