mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-08-15 14:53:29 -07:00
fix: return back to knut/examples example
This commit is contained in:
parent
5fdd06105e
commit
31b3c1d7b4
1 changed files with 8 additions and 8 deletions
|
|
@ -18,7 +18,7 @@ The repository was created via the Codeberg website, including a `README.md` fil
|
||||||
### Clone
|
### Clone
|
||||||
|
|
||||||
_Cloning_ refers to the process of creating an identical copy of an online repository to your local machine.
|
_Cloning_ refers to the process of creating an identical copy of an online repository to your local machine.
|
||||||
Clone with the Git command `clone` followed by the repo URL.
|
Clone with the Git command `clone` followed by the repository URL.
|
||||||
|
|
||||||
#### SSH
|
#### SSH
|
||||||
|
|
||||||
|
|
@ -34,9 +34,9 @@ you have [verified Codeberg's SSH fingerprint](/security/ssh-fingerprint)!
|
||||||
If you have set up a passphrase, you will be asked for it.
|
If you have set up a passphrase, you will be asked for it.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
~$ git clone git@codeberg.org:user/repo.git
|
~$ git clone git@codeberg.org:knut/examples.git
|
||||||
Enter passphrase for key '/home/user/.ssh/id_rsa': ****
|
Enter passphrase for key '/home/knut/.ssh/id_rsa': ****
|
||||||
Cloning into 'repo'...
|
Cloning into 'examples'...
|
||||||
remote: Enumerating objects: 3, done.
|
remote: Enumerating objects: 3, done.
|
||||||
remote: Counting objects: 100% (3/3), done.
|
remote: Counting objects: 100% (3/3), done.
|
||||||
remote: Compressing objects: 100% (2/2), done.
|
remote: Compressing objects: 100% (2/2), done.
|
||||||
|
|
@ -47,8 +47,8 @@ Unpacking objects: 100% (3/3), done.
|
||||||
#### HTTP
|
#### HTTP
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
~$ git clone https://codeberg.org/user/repo.git
|
~$ git clone https://codeberg.org/knut/examples.git
|
||||||
Cloning into 'repo'...
|
Cloning into 'examples'...
|
||||||
remote: Enumerating objects: 3, done.
|
remote: Enumerating objects: 3, done.
|
||||||
remote: Counting objects: 100% (3/3), done.
|
remote: Counting objects: 100% (3/3), done.
|
||||||
remote: Total 3 (delta 0), reused 0 (delta 0)
|
remote: Total 3 (delta 0), reused 0 (delta 0)
|
||||||
|
|
@ -58,8 +58,8 @@ 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, 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
|
```shell
|
||||||
~$ git clone https://token@codeberg.org/user/repo.git
|
~$ git clone https://token@codeberg.org/knut/examples.git
|
||||||
Cloning into 'repo'...
|
Cloning into 'examples'...
|
||||||
remote: Enumerating objects: 3, done.
|
remote: Enumerating objects: 3, done.
|
||||||
remote: Counting objects: 100% (3/3), done.
|
remote: Counting objects: 100% (3/3), done.
|
||||||
remote: Total 3 (delta 0), reused 0 (delta 0)
|
remote: Total 3 (delta 0), reused 0 (delta 0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue