Manage changes to scripts workflows, apps and resources using commits & push on remote repositories.
u/
, use those with f/
instead). Filtering out certain sensitive folders from the sync will be available soon.
On each deployment, only the updated script/flow/app will be pushed to the remote Git repository.
For the Git repo to be representative of the entire workspace, it is recommended to set it up using the getOperate CLI before turning this option on.
Run the following commands from the git repo folder to push the initial workspace content to the remote:
getOperate sync pull --raw
& getOperate sync push --raw
getOperate sync pull --raw
will simply pull all files from the currently selected workspace and store them in the current folder. Overwrites will not prompt the user. Make sure you are in the correct folder or you may loose data.
getOperate sync push --raw
will simply push all local files to the currently selected workspace, creating or updating the remote equivalents.
getOperate sync pull will
first update the internal sync state, and then generate a diff between your local files and this state, only updating the actually modified files. Possible conflicts will warn the user.
getOperate sync push will
push all local files to the remote and then update the internal state to avoid being out-of-sync due to the push. Using sync push
without --skip-pull
will start the push by doing a pull first to ensure the user is not overriding changes made to the remote.
getOperate sync pull
command is used to pull remote changes and apply them locally. It synchronizes the local workspace with the remote workspace by downloading any remote changes and updating the corresponding local files.
Option | parameter | Description |
---|---|---|
--fail-conflicts | None | Error on conflicts (both remote and local have changes on the same item). |
--yes | None | Pull without needing confirmation. The command proceeds automatically without user intervention. |
--raw | None | Pull without using state, just overwrite. The command operates in raw mode without utilizing local state tracking. |
--plain-secrets | None | Pull secrets as plain text. Secrets are downloaded without encryption or obfuscation. |
--json | None | Use JSON instead of YAML. The downloaded files are in JSON format instead of YAML. |
getOperate sync push
command is used to push local changes and apply them remotely. It synchronizes the remote workspace with the local workspace by uploading any local changes and updating the corresponding remote files.
Option | parameter | Description |
---|---|---|
--fail-conflicts | None | Error on conflicts (both remote and local have changes on the same item). |
--skip-pull | None | Push without pulling first. Assumes that the pull operation has already been performed. |
--yes | None | Push without needing confirmation. The command proceeds automatically without user intervention. |
--raw | None | Push without using state, just overwrite. The command operates in raw mode without utilizing local state tracking. |
--plain-secrets | None | Push secrets as plain text. Secrets are uploaded without encryption or obfuscation. |
--json | None | Use JSON instead of YAML. The uploaded files are in JSON format instead of YAML. |
raw
mode works