Skip to main content
Back

Clone and push

Use git over HTTPS with a token you generate in Kliff.

How do I clone a repository?

  1. Open the repository from Code and select Clone.
  2. Select Copy clone URL.
  3. Select Generate token, then Copy token.
  4. Run git clone with the URL. When git asks for a username, enter anything. When it asks for a password, paste the token.

The clone URL is your Kliff address followed by /code/, the owner, the repository name, and .git.

What can a token do?

A token works for one repository. It can pull and push, and it lasts 30 days. Kliff shows it once and does not keep a copy, so save it where git keeps your passwords. When it expires, generate a new one from Clone.

Any member of the organization who can open the repository can generate a token.

How do I push to a new, empty repository?

An empty repository shows the commands on its Code tab, under Start from scratch and Push an existing repository. To push code you already have:

Source codetext

Can I open pull requests here?

No. Repositories Kliff hosts have no pull requests or issues. Push to a branch, and use the Branches and Commits tabs to follow the work.