You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, you may want to ensure that the remote workspace reflects exactly what is present in your local directory, removing any files on the remote that are not present locally. The wmill sync push command provides an option called --skip-pull that allows you to achieve this.
115
-
116
-
### How it Works
117
-
118
-
When you use the --skip-pull option with the wmill sync push command, the CLI will push the local changes without performing a pull operation first. It assumes that you have manually performed the pull operation to update the local state.
119
-
120
-
The command will upload all the local changes to the remote workspace and overwrite any existing remote files. If a file exists on the remote but is not present locally, it will be erased during the push operation.
121
-
122
-
### Usage
123
-
124
-
To erase anything on the remote that is not present locally, follow these steps:
125
-
126
-
1. Make sure you are in the local directory where your files are located.
127
-
2. Run the following command to push the local changes and overwrite the remote files:
128
-
129
-
```bash
130
-
wmill sync push --skip-pull
131
-
```
132
-
133
-
This command will upload all the local changes to the remote workspace without checking for any remote changes. Any files on the remote that are not present locally will be erased.
134
-
135
-
Note: Be cautious when using the --skip-pull option, as it can lead to data loss if used incorrectly. Make sure you have a backup of any important files before using this option.
136
-
137
-
Using wmill sync push --skip-pull, you can ensure that the remote workspace reflects exactly what is present in your local directory, removing any files on the remote that are not present locally.
0 commit comments