1
0
Fork 0
mirror of synced 2024-12-21 22:21:08 -05:00

Add section on ignoring files (#204)

This commit is contained in:
Tim Byrne 2022-01-17 11:14:21 -06:00
parent 5b3e5de331
commit 319afa08d4
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

View file

@ -159,6 +159,27 @@ configuration by running:
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
### Why does git-cola hang when run via `yadm enter`?