Skip to content

Commit 0690922

Browse files
committed
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.
1 parent de2940f commit 0690922

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/FAQ.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ files you want to keep around to match the pattern.
104104

105105
If `$EDITOR` integration is important, something like `scratchpad.*` may be more
106106
helpful, as you can keep the filename extension intact (it
107-
matches `scratchpad.md`, `scratchpad.rs` and more).
107+
matches `scratchpad.md`, `scratchpad.rs` and more). Another option is to add a
108+
directory to the global `.gitignore` which then stores all your temporary files
109+
and notes. For example, you could add `scratch/` to `~/.git/ignore` and then
110+
store arbitrary files in `<your-git-repo>/scratch/`.
108111

109112
You can find more details on `gitignore` files [here][gitignore].
110113

0 commit comments

Comments
 (0)