# HTTPS and access tokens

A token replaces the password for git over HTTPS. It is created in the settings and shown once; its rights are read (clone) or read and write (push).

> **Who can use this:** A token acts on your behalf and opens the repositories you have access to.

## Create a token

1. Open **Settings → [Access tokens](https://skillok.org/settings/tokens)**.
2. In the **Create token** block enter a name — you will recognize the token by it in the list.
3. Tick the rights: **read repositories** (clone and fetch) is always on, **write** (push) — by a
   checkbox.
4. Press **Create**. The token is shown **once** — copy it and keep it safe.

## Use it

Git asks for a login and a password — enter your login and paste the token instead of the
password. Or put the token right into the address:

```
https://TOKEN@skillok.org/git/anna/notes.git
```

A token in the address stays in `.git/config` and in the terminal history as plain text — this
does not happen with SSH.

## List and revoke

Under the form is **Your tokens**: name, the beginning of the token, rights, «used …» and
«created …». The revoke button disables the token at once: machines that used it lose access.

---

https://skillok.org/docs/en/repositories/git-access/https-and-access-tokens
