forked from mirrors/jj
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.
This commit is contained in:
parent
de2940f9b7
commit
0690922ca1
1 changed files with 4 additions and 1 deletions
|
@ -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 `<your-git-repo>/scratch/`.
|
||||
|
||||
You can find more details on `gitignore` files [here][gitignore].
|
||||
|
||||
|
|
Loading…
Reference in a new issue