oxen.workspace
Workspace Objects
Examples
Adding Files to a Workspace
Create a workspace from a branch.__init__
repo
-PyRemoteRepo
The remote repo to create the workspace from.branch
-str
The branch name to create the workspace from. The workspace will be tied to the commit id of the branch at the time of creation.workspace_id
-Optional[str]
The workspace id to create the workspace from. If left empty, will create a unique workspace id.workspace_name
-Optional[str]
The name of the workspace. If left empty, the workspace will have no name.path
-Optional[str]
The path to the workspace. If left empty, the workspace will be created in the root of the remote repo.
id
name
branch
commit_id
repo
status
path
-str
The path to check the status of.
add
src
-str
The path to the local file to be stageddst
-str
The path in the remote repo where the file will be added
rm
path
-str
The path to the file on workspace to be removed
commit
message
-str
The message to commit withbranch_name
-Optional[str]
The name of the branch to commit to. If left empty, will commit to the branch the workspace was created from.