Git: Setup und erste Schritte: Unterschied zwischen den Versionen

Aus Kicker (internals)
Zur Navigation springenZur Suche springen
Inhalt gelöscht Inhalt hinzugefügt
Cbutz (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Stehr (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
 
(6 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 3: Zeile 3:
https://git-scm.com/install/
https://git-scm.com/install/


Change the following options when using the graphical installer:
Optional for a GUI, additionally install TortoiseGIT.

- Choosing default Editor:
Choose Notepad++ (or other editor of choice that is installed)

- Adjusting the name of the initial branch in new repositories:
Override the default: main

- Choose the default behavior of git pull: Rebase

For the rest take the default options

== GUI (Optional) ==

Optionally, for a GUI, additionally install TortoiseGIT. Use the OpenSSH option during the install process


TortoiseGIT is a graphical wrapper for the git CLI. TortoiseGIT is found in the Windows Explorer context menu.
TortoiseGIT is a graphical wrapper for the git CLI. TortoiseGIT is found in the Windows Explorer context menu.

== Git LFS (Large File System) ==

In a terminal run:

git lfs install

This is necessary once on each machine.


= Authentication =
= Authentication =
Zeile 32: Zeile 54:
==Clone via SSH ==
==Clone via SSH ==


git@gitlab.lrz.de:hm-stehr/prock.git
git clone git@gitlab.lrz.de:hm-stehr/prock.git


== Clone via HTTPS ==
== Clone via HTTPS ==


https://gitlab.lrz.de/hm-stehr/prock.git
git clone https://gitlab.lrz.de/hm-stehr/prock.git


= Zum Schmunzeln =
= Zum Schmunzeln =

Aktuelle Version vom 20. November 2025, 15:42 Uhr

Install git

https://git-scm.com/install/

Change the following options when using the graphical installer:

- Choosing default Editor: Choose Notepad++ (or other editor of choice that is installed)

- Adjusting the name of the initial branch in new repositories: Override the default: main

- Choose the default behavior of git pull: Rebase

For the rest take the default options

GUI (Optional)

Optionally, for a GUI, additionally install TortoiseGIT. Use the OpenSSH option during the install process

TortoiseGIT is a graphical wrapper for the git CLI. TortoiseGIT is found in the Windows Explorer context menu.

Git LFS (Large File System)

In a terminal run:

git lfs install

This is necessary once on each machine.

Authentication

SSH (Recommended)

Tutorial: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

HTTPS

Use username (<hm-username>) and password.

Git Cheat Sheet

https://education.github.com/git-cheat-sheet-education.pdf

Tutorials

Interactive Tutorial: https://learngitbranching.js.org/#

ProCK Gitlab Repo

Website

https://gitlab.lrz.de/hm-stehr/prock

Clone via SSH

git clone git@gitlab.lrz.de:hm-stehr/prock.git

Clone via HTTPS

git clone https://gitlab.lrz.de/hm-stehr/prock.git

Zum Schmunzeln

https://github.com/danielauener/git-auf-deutsch