cleanup git via ssh

This commit is contained in:
René Wagner 2021-05-27 21:38:11 +02:00
parent 027d5faa17
commit b155792237
No known key found for this signature in database
GPG key ID: 2B8BCD69606E7F19

View file

@ -4,16 +4,20 @@ eleventyNavigation:
title: Clone & Commit via SSH
parent: Git
order: 40
draft: true
---
> **Warning** Please make sure that before connecting to Codeberg via SSH,
Before you are able to use SSH for git you need to [add an SSH key to your account](/security/ssh-key).
> **Warning**
> Please make sure that before connecting to Codeberg via SSH,
> you have [verified Codeberg's SSH fingerprint](/security/ssh-fingerprint)!
The user in these examples is `JohnDoe` and its repository is `foobar`. The repository was created via the Codeberg.org website including a `README.md` file.
## Clone the repo
```bash
~$ git clone git@codeberg.org:JohnDoe/foobar.git
Enter passphrase for key '/home/JohnDoe/.ssh/id_rsa': ****
Cloning into 'foobar'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
@ -41,8 +45,7 @@ Commit changes to local repository.
## Synchronize your local repository with the remote one
```bash
~/foobar$ git push
Username for 'https://codeberg.org': JohnDoe
Password for 'https://JohnDoe@codeberg.org':
Enter passphrase for key '/home/JohnDoe/.ssh/id_rsa': ****
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
@ -50,4 +53,4 @@ Writing objects: 100% (3/3), 266 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To https://codeberg.org/JohnDoe/foobar.git
662e04e..10074d7 master -> master
```
```