From 897d805b4d90b574e101d69d4d616db4b6de27ed Mon Sep 17 00:00:00 2001 From: Lucas Hinderberger Date: Mon, 31 Aug 2020 16:50:44 +0200 Subject: [PATCH] Styling fixes --- content/getting-started/first-repository.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/content/getting-started/first-repository.md b/content/getting-started/first-repository.md index 18efcfd..9ee83df 100644 --- a/content/getting-started/first-repository.md +++ b/content/getting-started/first-repository.md @@ -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 ```