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).
In this article
Create a token#
- Open Settings → Access tokens.
- In the Create token block enter a name — you will recognize the token by it in the list.
- Tick the rights: read repositories (clone and fetch) is always on, write (push) — by a checkbox.
- 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.
Was this helpful?