Clone a repository.
cpm repo clone <url>
Arguments:
url
: URL of the repository.Options:
-d, --destination <destination>
: Destination to clone (optional).Checkout a branch inside the git repository. If the branch does not exist, create a branch from the default branch and update the default branch from upstream before creating a new branch.
cpm repo checkout [options]
Options:
-b, --branch <branch>
: Branch name to checkout (required).Synchronize the repository’s current branch with remote.
cpm repo sync
Get info of the repository.
cpm repo info
Outputs:
currentBranch
: Current branch name.changesPending
: Changes pending.