add command uploads a local file or directory into a workspace. Note that Diversion tracks changes inside a workspace automatically — add is only needed to upload content from outside the workspace, for example from scripts.
--local_path- The path to the local file or directory to upload--path- The target path in the workspace
--repo_id- The ID of the repository to upload the file to (defaults to the current workspace’s repo)--workspace_id- The ID of the workspace to upload the file to (defaults to the current workspace)
After using
add, you’ll still need to commit the changes to save them to your branch.
