Adding all last updates to repo
Please add and commit when you change someting!
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user