Edit on GitHubCommand Reference:
Command Reference: ci
cml ci [options]Prepares Git repository for CML operations (setting Git user.name &
user.email; fetching all branch tips; undoing CI oddities such as origin URL
formatting and HTTP remote proxies; and, optionally, unshallowing clone).
Options
Any generic option in addition to:
-
--fetch-depth=<number>: Commits to fetch (use0for all branches & tags). -
--user-email=<address>: Git user email for commits [default:olivaw@iterative.ai]. -
--user-name=<...>: Git user name for commits [default:Olivaw[bot]].
Examples
Instead of wrangling with
unshallowing clones and
git config user.email before being able to git commit or use cml pr,
simply run:
$ cml ci --fetch-depth=0