From 0690922ca15ced55e417edab806c982b0cc42b84 Mon Sep 17 00:00:00 2001 From: Philip Metzger Date: Wed, 10 Jul 2024 18:33:12 +0200 Subject: [PATCH] FAQ: Add some more variants on how to deal with temporary files The people in #323 think that we should document all patterns there are to deal with ignored files. --- docs/FAQ.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/FAQ.md b/docs/FAQ.md index b4203eb71..1d90d4c0d 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -104,7 +104,10 @@ files you want to keep around to match the pattern. If `$EDITOR` integration is important, something like `scratchpad.*` may be more helpful, as you can keep the filename extension intact (it -matches `scratchpad.md`, `scratchpad.rs` and more). +matches `scratchpad.md`, `scratchpad.rs` and more). Another option is to add a +directory to the global `.gitignore` which then stores all your temporary files +and notes. For example, you could add `scratch/` to `~/.git/ignore` and then +store arbitrary files in `/scratch/`. You can find more details on `gitignore` files [here][gitignore].