CLICode
Repositories
Clone, list and view, create, edit and delete repositories
co repo works with the git repositories of a workspace. clone and view take a repository name or <workspace>/<name>, and edit and delete take the KEY (number) from co repo list.
All options are in co repo <command> --help.
clone
co repo clone collabops-cli # from the default workspace, over SSH
co repo clone collabops-one/collabops-cli ./co # another workspace, into a given folder
co repo clone collabops-cli --https # over HTTPS
co repo clone collabops-cli -- --depth 1 # everything after -- goes to git clone as isIf git is not installed, co stops before cloning and points to co doctor. If there is no SSH key, co offers Git setup before cloning. The difference between SSH and HTTPS is in Login and Git setup.
Find and manage
co repo list # repositories in the workspace
co repo list -p CORE # only repositories linked to a project
co repo view # details of the repository in the current folder
co repo create -n new-service
co repo edit <key> --default-branch develop
co repo delete <key> # cannot be undone, so co asks to confirm