Git Repository initialisieren

  1. Creating a new repository on the command line

1touch README.md
2git init
3git checkout -b main
4git add README.md
5git commit -m "first commit"
6git remote add origin https://git.sirenthesiren.xyz/SirenTheSiren/berufsschule.git
7git push -u origin main
  1. Pushing an existing repository from the command line

1git remote add origin https://git.sirenthesiren.xyz/SirenTheSiren/berufsschule.git
2git push -u origin main