mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-08-15 14:53:29 -07:00
fix: push token always needs repository write access
This commit is contained in:
parent
16d8522d56
commit
5fdd06105e
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ remote: Total 3 (delta 0), reused 0 (delta 0)
|
|||
Unpacking objects: 100% (3/3), 214 bytes | 1024 bytes/s, done.
|
||||
```
|
||||
|
||||
If you wish to clone a private repository, simply add an [access token](/advanced/access-token/) from your account into the URL passed to `git clone`. If you only want to clone or fetch from the repository, the token only needs read access. If you want to push to the repository and have 2FA enabled, write access is needed.
|
||||
If you wish to clone a private repository, simply add an [access token](/advanced/access-token/) from your account into the URL passed to `git clone`. If you only want to clone or fetch from the repository, the token only needs read access. If you want to push to the repository, write access is needed.
|
||||
|
||||
```shell
|
||||
~$ git clone https://token@codeberg.org/user/repo.git
|
||||
|
|
|
|||
Loading…
Reference in a new issue