Adding all last updates to repo

Please add and commit when you change someting!
This commit is contained in:
www
2020-05-26 12:00:06 +00:00
parent 9751bbde0f
commit c82885fcd2
10 changed files with 156 additions and 7 deletions

View File

@@ -1 +1,28 @@
title: "1.4 Git aktivieren"
## Erstellen eines gits
Erstelle ein git repository in deinem Ordner.
:::bash
www@fetsite:/srv/pet1$ git init
www@fetsite:/srv/pet1$ git config --global user.email "pet@fet.at"
www@fetsite:/srv/pet1$ git config --global user.name "Peter"
## Erster commit
Mach einen commit, diese schritte wiederholen sich jedes mal wenn du einen commit machen willst.
:::bash
www@fetsite:/srv/pet1$ git stage *
www@fetsite:/srv/pet1$ git commit -m "first commit"
## Configuriere remote (optional)
Wenn du willst kannst du unter [git.fet.at](https://git.fet.at) ein remote repo erstellen und einrichten.
:::bash
#Either specify the URL from the command-line or configure a remote repository using
www@fetsite:/srv/pet1$ git remote add <name> <url>
#and then push using the remote name
www@fetsite:/srv/pet1$ git push <name>