mirror of
https://codeberg.org/Codeberg/Documentation.git
synced 2026-08-15 14:53:29 -07:00
Styling fixes
This commit is contained in:
parent
15a9ec4531
commit
897d805b4d
1 changed files with 10 additions and 7 deletions
|
|
@ -14,13 +14,15 @@ After login you can use one of the two buttons shown in the two following pictur
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Note it is not possible to use your git on your local machine to push a fresh repository on Codeberg.
|
> Note it is not possible to use your git on your local machine to push a fresh repository on Codeberg.
|
||||||
# Connect a local repository to Codeberg
|
|
||||||
|
## Connect a local repository to Codeberg
|
||||||
Keep in mind that you first need to create a repository on Codeberg as stated in the section before.
|
Keep in mind that you first need to create a repository on Codeberg as stated in the section before.
|
||||||
|
|
||||||
## Optional: Create the local repository
|
### Optional: Create the local repository
|
||||||
If you don't have an existing git repository on your local machine that you can create one.
|
If you don't have an existing git repository on your local machine that you can create one.
|
||||||
```
|
|
||||||
|
```bash
|
||||||
mkdir ~/playground
|
mkdir ~/playground
|
||||||
cd ~/playground
|
cd ~/playground
|
||||||
touch README.md
|
touch README.md
|
||||||
|
|
@ -28,16 +30,17 @@ git init
|
||||||
git add README.md
|
git add README.md
|
||||||
git commit -m "first commit"
|
git commit -m "first commit"
|
||||||
```
|
```
|
||||||
## Declare Codeberg repository as 'origin'
|
|
||||||
|
### Declare Codeberg repository as 'origin'
|
||||||
Your local repository need to know where the remote one is. It is usual and common to name it `origin`. The string `origin` could be desribed as an alias for the remote repository on the Codeberg server.
|
Your local repository need to know where the remote one is. It is usual and common to name it `origin`. The string `origin` could be desribed as an alias for the remote repository on the Codeberg server.
|
||||||
|
|
||||||
Now you have two protocol variantes to connect: SSH and HTTPS.
|
Now you have two protocol variantes to connect: SSH and HTTPS.
|
||||||
|
|
||||||
**Variant - SSH**
|
**Variant - SSH**
|
||||||
```
|
```bash
|
||||||
$ git remote add origin ssh://git@codeberg.org/JohnDoe/playground.git
|
$ git remote add origin ssh://git@codeberg.org/JohnDoe/playground.git
|
||||||
```
|
```
|
||||||
**Variant - HTTPS**
|
**Variant - HTTPS**
|
||||||
```
|
```bash
|
||||||
$ git remote add origin https://codeberg.org/JohnDoe/playground.git
|
$ git remote add origin https://codeberg.org/JohnDoe/playground.git
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue