Git: Setup and First Steps: Unterschied zwischen den Versionen

Aus Kicker (internals)
Zur Navigation springenZur Suche springen
Inhalt gelöscht Inhalt hinzugefügt
Stehr (Diskussion | Beiträge)
Clean up
Stehr (Diskussion | Beiträge)
KKeine Bearbeitungszusammenfassung
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 22: Zeile 22:


= Install GUI (Optional) =
= Install GUI (Optional) =
On Windows, the Explorer plug-in TortoiseGit can be helpful, although everything can be done on command line in GitBash. The TortoiseGit operations are available in the context menu.
On Windows, the Explorer plug-in TortoiseGit can be helpful, although everything can be done on command line in GitBash. The TortoiseGit operations are available in the Explorer context menu.
* Install MSVC++ Redistributable, which is a prerequisite to TortoiseGit:
* Install MSVC++ Redistributable, which is a prerequisite to TortoiseGit:
** Get it from https://visualstudio.microsoft.com/downloads/ -> Other Tools, Frameworks, and Redistributables -> Microsoft Visual C++ v?? Redistributable. For v?? use the latest version.
** Get it from https://visualstudio.microsoft.com/downloads/ -> Other Tools, Frameworks, and Redistributables -> Microsoft Visual C++ v?? Redistributable. For v?? use the latest version.
Zeile 38: Zeile 38:
** Follow guidelines on https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
** Follow guidelines on https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
* Upload public SSH key to gitlab
* Upload public SSH key to gitlab
** Steps described on https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account
** Steps described on https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.
Before you can access https://gitlab.lrz.de you need to accept the invitation to this project which you should have received by email.

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


= Initial Clone of the ProCK Repository =
= Initial Clone of the ProCK Repository =
Pull the prock repository owned by hm-stehr to your local machine:
Pull the ProCK repository owned by hm-stehr to your local machine.
* Recommended: Via SSH
* Recommended: Via SSH
** In GitBash: <code>git clone git@gitlab.lrz.de:hm-stehr/prock.git</code>
** In GitBash: <code>git clone git@gitlab.lrz.de:hm-stehr/prock.git</code>

Aktuelle Version vom 13. Oktober 2026, 20:10 Uhr

Install a Development Environment

Install an integrated development environment of your choice.

Install Default Editor for git

Whenever a text comment is required by a git command and none is given via command line then a default editor is started. It should be comfortable, yet lightweight.

Install git

  • Get installer for your OS from https://git-scm.com/install/ .
  • Accept defaults during installation with these exceptions:
    • Choosing the default editor used by Git: Select default editor from above.
    • Adjusting the name of the initial branch in new repositories: Override the default branch name for new repositories: main.

Install GUI (Optional)

On Windows, the Explorer plug-in TortoiseGit can be helpful, although everything can be done on command line in GitBash. The TortoiseGit operations are available in the Explorer context menu.

Git LFS (Large File System)

For a more efficient handling of large binary files, git LFS is used. It needs to be installed once per machine (already done on the lab PCs).

  • Open GitBash and enter git lfs install.

Set up SSH

For a secure communication between work PC and gitlab either SSH or HTTPs can be used. SSH is recommended.

Before you can access https://gitlab.lrz.de you need to accept the invitation to this project which you should have received by email.

Initial Clone of the ProCK Repository

Pull the ProCK repository owned by hm-stehr to your local machine.

You can inspect the repository on its website: https://gitlab.lrz.de/hm-stehr/prock

Git Resources

:)

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