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