oxen.repo
Repo Objects
Examples
Init, Add, Commit and Push
Adding and committing a file to a remote workspace.__init__
path-strPath to the main working directory of your oxen repo.mkdir-boolWhether to create the directory if one doesn’t exist. Default: False
init
clone
url-strThe url of the remote repository. ex) https://hub.oxen.ai/ox/chatbotbranch-strThe name of the branch to clone. Default: mainall-boolWhether to clone the full commit history or not. Default: False
branches
branch
checkout
revision-strThe name of the branch or commit id to checkout.create-boolWhether to create a new branch if it doesn’t exist. Default: False
add
add_schema_metadata
rm
path-strThe path to the file or directory to remove.recursive-boolWhether to remove the file or directory recursively. Default: Falsestaged-boolWhether to remove the file or directory from the staging area.Default- Falseremote-boolWhether to remove the file or directory from a remote workspace.Default- False
status
commit
message-strThe commit message.
log
set_remote
name-strThe name of the remote. Ex) originurl-strThe url you want to map the name to. Ex) https://hub.oxen.ai/ox/chatbot
push
remote_name-strThe name of the remote to push to.branch-strThe name of the branch to push to.
pull
remote_name-strThe name of the remote to pull from.branch-strThe name of the branch to pull from.all-boolWhether to pull all data from branch history or not. Default: False