Skip to main content

Your first steps with git

Clone your git repository

Get the git url

Navigate to your git repository and clone the git url

image-1649588364634.png

Navigate to your workspace

Navigate to your workspace directory.

image-1649588539574.png

Clone the repository

You can clone the repository by using the git clone command.

git clone <git url>
# For example:
git clone ssh://git@gitea.voser.cloud:2222/janic/Calculator.git

If you are prompted to accept to ssh-fingerprint type yes and hit enter

image-1649588683009.png

Open repository in your editor

Navigate into your repository (cd "your repository name" /cd Calculator )

Open this directory in VScode with the following command code .

image-1649588847485.png

In Visual Studio Code you need to trust the author of this repository.

image-1649590514694.png

Afterwards you can see the Project folder on the left side. You can press <ctrl>+<b> to toggle this explorer view.

Edit a file

If you now edit a file you can see which lines you have modified.