Kliff git hosting
Keep repositories on Kliff, push to them over HTTPS, and let agents work on them without a git provider.
Kliff can host git repositories itself, private to your organization. Agents work on a hosted repository like any other, and their commits go straight to its default branch. Code in the sidebar lists every repository in the organization, hosted by Kliff or connected from GitHub or GitLab.
Where repositories live
Hosted repositories live at /code/ plus an owner name:
- In your personal organization, the owner is your username. The first time you open Code, choose one with Claim username, or select Skip for now.
- In a team organization, the owner is the organization's name in its address.
A username has 3 to 30 lowercase letters, numbers, or dashes, and starts and ends with a letter or number. You can change it later in Settings > Kliff, under Git providers. The old address stops working, with no redirect, and existing clones need their remote changed to the new one.
Create a repository
On your owner page in Code, select New repository and give it a name. A new repository starts empty and is private to the organization.
A name can have up to 64 lowercase letters, numbers, dots, dashes, or underscores, and cannot end in .git.
An agent started with No repository gets no hosted repository. It keeps its files on its own computer until you select Create repository on its page: Kliff then hosts a repository named after the agent, and the agent moves its work in and pushes. Deleting that agent also deletes the repository, if it has no branches or tags and nothing else uses it.
Clone and push
Each repository's Clone menu has its address, ending in .git, and Generate token. Git asks for a password over HTTPS: use any username, and the token as the password.
A token can push to that repository, lasts 30 days, and is shown only once. Generate a new one when it expires.
An empty repository's page shows the commands to start from scratch or push an existing repository.
Browse a repository
A hosted repository's page has these tabs: Code, Agents, Automations, Commits, Branches, Tags, and Settings. Branches shows how far each branch is behind or ahead of the default branch.
Agents on hosted repositories
Agents clone a hosted repository and commit to it like any other. There are no pull requests: Kliff pushes the agent's commits to the default branch. Hosted repositories cannot be added to a project, and automations do not start runs on them, because a run ends in a pull request.
Delete a repository
Owners and admins can delete a hosted repository from its Settings tab, by holding Hold to delete repository.