From 29861c483b15b9e78ad6eec6846e5d41cd7117b4 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Thu, 15 Nov 2018 22:13:54 +0100 Subject: [PATCH] Changed gitignore list (#7076) * WIP: Changed gitignore file (again) * :pencil2: Deleted my text, it makes no sense * :pencil2: Adding storage and cloud folder * :pencil2: Changed the gitignore list * :pencil2: Improved after input from others --- .../_docs/ecosystem/backup/backup_github.markdown | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/source/_docs/ecosystem/backup/backup_github.markdown b/source/_docs/ecosystem/backup/backup_github.markdown index 82114cae475..eac5f50c09b 100644 --- a/source/_docs/ecosystem/backup/backup_github.markdown +++ b/source/_docs/ecosystem/backup/backup_github.markdown @@ -57,16 +57,21 @@ Creating a `.gitignore` file in your repository will tell Git which files NOT to Here is an example that will ignore everything but your YAML configuration. ```bash -# Example .gitignore file for your config dir. Lines with ! will not be ignored. +# Example .gitignore file for your config dir. +# A * ensures that everything will be ignored. * + +# You can whitelist files/folders with !, these will not be ignored. !*.yaml !.gitignore -*.conf -*.txt -*.log +!*.md + +# Ignore folders. .storage .cloud .google.token + +# Ensure these YAML files are ignored, otherwise your secret data/credentials will leak. ip_bans.yaml secrets.yaml known_devices.yaml