Files
doc.2020/HowToStart/1_4_start_git.md
www c82885fcd2 Adding all last updates to repo
Please add and commit when you change someting!
2020-05-26 12:00:06 +00:00

29 lines
894 B
Markdown

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>