docs: add clone operation, wish -> want

This commit is contained in:
Mark Pitblado 2025-02-03 06:33:39 -08:00 committed by Robert Wolff
parent e7fe2eee03
commit 1186f54db5
No known key found for this signature in database
GPG key ID: 1614C70AD69A61A1

View file

@ -52,7 +52,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 wish to fetch repositories, the token only needs read access. If you wish 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 and have 2FA enabled, write access is needed.
```shell
~$ git clone https://token@codeberg.org/user/repo.git