Add section on ignoring files (#204)
This commit is contained in:
parent
5b3e5de331
commit
319afa08d4
1 changed files with 21 additions and 0 deletions
|
@ -159,6 +159,27 @@ configuration by running:
|
||||||
yadm config yadm.auto-private-dirs false
|
yadm config yadm.auto-private-dirs false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Ignoring Files
|
||||||
|
|
||||||
|
### How can I configure ignored files?
|
||||||
|
|
||||||
|
By default, yadm is configured to
|
||||||
|
[ignore untracked files](#how-can-i-display-untracked-files-with-a-yadm-status-command)
|
||||||
|
when displaying a status. This does not prevent you from adding untracked files.
|
||||||
|
However, if you would like to prevent some files from being added accidentally,
|
||||||
|
you can configure them to be ignored.
|
||||||
|
|
||||||
|
If you add a `.gitignore` file to your `$HOME` directory (or subdirectories) you
|
||||||
|
can have those patterns ignored by yadm. This works exactly like it does for
|
||||||
|
Git. Be sure to add these `.gitignore` files to your repo, so they can be synced
|
||||||
|
along with your other configurations.
|
||||||
|
|
||||||
|
Another option is to add patterns to
|
||||||
|
`$HOME/.local/share/yadm/repo.git/info/exclude`.
|
||||||
|
If you use this file, be sure to add your patterns above any
|
||||||
|
`yadm-auto-excludes` line, as all lines below this can be overwritten by yadm
|
||||||
|
when encrypting data.
|
||||||
|
|
||||||
## Integrations
|
## Integrations
|
||||||
|
|
||||||
### Why does git-cola hang when run via `yadm enter`?
|
### Why does git-cola hang when run via `yadm enter`?
|
||||||
|
|
Loading…
Reference in a new issue