Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b4b043

Browse files
committed
update sync
1 parent c8d510d commit 0b4b043

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/advanced/3_cli/sync.mdx

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ local development through the [VS Code extension](../../cli_local_dev/1_vscode-e
1818

1919
Syncing is done using `wmill sync pull` & `wmill sync push`.
2020

21-
Syncing is a one-off operation with no state maintained. It will override any item that is within the scope, and that are in the target and not in the source, and it will create new items that are in source but not in target.
22-
It is a dangerous operation, that we recommend doing on a version-controlled folder to be able to revert any undesired changes made by mistake if necessary.
21+
Syncing is a one-off operation with no state maintained. It will override any item that is within the scope: remove those that are in the target and not in the source, and it will create new items that are in source but not in target.
22+
It is a _dangerous_ operation, that we recommend doing on a version-controlled folder to be able to revert any undesired changes made by mistake if necessary. It will however, show you the list of changes and ask you for confirmation before applying them.
2323

2424
To specify the scopes of files, you should modify the includes and excludes (array of path matchers) part of the `wmill.yaml` file generated with `wmill init`. We recommend looking at all the settings of the `wmill.yaml` file to understand the different options available.
2525
Those are the default ones:
@@ -37,6 +37,8 @@ includeSchedules: false
3737
includeTriggers: false
3838
```
3939

40+
See more details in [wmill.yaml](#wmillyaml).
41+
4042
Note that here, the variables, resources, secrets, schedules, and triggers are all skipped by default. You can change that by setting the corresponding options.g
4143

4244
When pulling, the source is the remote workspace and the target is the local folder, and when pushing, the source is the local folder and the target is the remote workspace.

0 commit comments

Comments
 (0)