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
|
|||
|
||||
![Create repository 02](/assets/images/getting-started/first-repository/create-repo-02.png)
|
||||
|
||||
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
|
||||
> 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
|
||||
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.
|
||||
```
|
||||
|
||||
```bash
|
||||
mkdir ~/playground
|
||||
cd ~/playground
|
||||
touch README.md
|
||||
|
@ -28,16 +30,17 @@ git init
|
|||
git add README.md
|
||||
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.
|
||||
|
||||
Now you have two protocol variantes to connect: SSH and HTTPS.
|
||||
|
||||
**Variant - SSH**
|
||||
```
|
||||
```bash
|
||||
$ git remote add origin ssh://git@codeberg.org/JohnDoe/playground.git
|
||||
```
|
||||
**Variant - HTTPS**
|
||||
```
|
||||
```bash
|
||||
$ git remote add origin https://codeberg.org/JohnDoe/playground.git
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue