Clone Repository
There’s a few ways to clone an Oxen repository, depending on the level of data transfer you want to incur. The defaultoxen clone with no flags will download the latest commit from the main branch.
-b flag.
CatDogBBox in which the files from the latest commit are downloaded, and a .oxen folder containing the Merkle Tree for each commit in the branch’s history and metadata for the repository.
Clone all
To clone the commit history for every branch, you can use the--all flag.
Cloning a subtree
If you’re only working with a subset of the repository, you can use the--filter and --depth flags to limit the clone to a subsection of the full tree. --filter selects the directories to be cloned, while --depth limits how many subdirectories can be recursed into.
annotations directory will be pulled locally.
Remote Mode
If you’re working with a larger repository than you can store on your local device, you can clone the repository in Remote Mode to get the commit merkle trees without downloading the files.oxen restore.
Set Remote
If create a repo locally, you can useoxen config --set-remote to point it to a repository that’s hosted remotely. This allows you to fetch or pull from that repository.
Pull Changes
Once you have a local repo with a remote, you canpull the latest changes for a branch. This fetches any new commits, downloading their files and commit merkle trees, and then checks out the latest commit in the working directory
origin and branch defaults to main
clone, you can pull all branches with --all
Fetch Changes
If you want to fetch the latest changes without checking them out in the working directory, you can useoxen fetch
Download Data
If you want to download specific files or directories with theoxen download command.
--revision flag