31 How-to Set Up git-crypt
in a New Git Repositories
Important
Only follow the next steps if you are setting up a new repository.
echo "_secret* filter=git-crypt diff=git-crypt" > .gitattributes
git-crypt init
git-crypt export-key git_crypt_secret_key
Now, copy the git_crypt_secret_key
file into ownCloud next to keepass files.
git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: .gitattributes
modified: _secret_ban.py
modified: gallery/_secret_config.py
modified: gallery/_secret_config_test.py
modified: gesisbinder/_secret.yaml
modified: gesisbinder/bot/_secret_cron_job.yaml
modified: gesishub/_secret.yaml
modified: gesishub/_secret_test.yaml
modified: gesishub/gesishub/files/etc/jupyterhub/_secret_user_id.json
modified: load_balancer/snippets/_secret.conf
modified: monitoring/_secret_grafana.yaml
modified: storage/backup/_secret.yaml
modified: takeout/image/app/_secret_token.json
Untracked files:
(use "git add <file>..." to include in what will be committed)
git_crypt_secret_key
no changes added to commit (use "git add" and/or "git commit -a")
Add all _secret*
files to stage and create a new commit.
git push