mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 19:42:07 +00:00
26 lines
638 B
Plaintext
26 lines
638 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# unison
|
|
|
|
> Bidirectional file synchronisation tool.
|
|
> More information: <https://github.com/bcpierce00/unison>.
|
|
|
|
- Sync two directories (creates log first time these two directories are synchronized):
|
|
|
|
`unison {{path/to/directory_1}} {{path/to/directory_2}}`
|
|
|
|
- Automatically accept the (non-conflicting) defaults:
|
|
|
|
`unison {{path/to/directory_1}} {{path/to/directory_2}} -auto`
|
|
|
|
- Ignore some files using a pattern:
|
|
|
|
`unison {{path/to/directory_1}} {{path/to/directory_2}} -ignore {{pattern}}`
|
|
|
|
- View documentation:
|
|
|
|
`unison -doc {{topics}}`
|