Versionsunterschiede von Git / Ein Eigenes Repository Einrichten
12 | 12 | %% |
---|---|---|
13 | 13 | |
14 | 14 | ====Ein neues lokales Repository für die Entwicklung Deines eigenen Wiki einrichten==== |
15 | =====1. Git Installation und Standardeinstellungen ==== | |
16 | Nach der Installation von git definiere den Hauptnutzer und die dazugehörige E-Mail-Adresse als Standardeinstellungen in der Konfigurationsdatei für die Gesamtheit der auf Deinem Rechner gespeicherten Repositorys. | |
15 | Nach der Installation von git definiere: | |
17 | 16 | |
18 | Globaler Nutzer | |
19 | %%(cl) git config --global user.name "Globaler Git-Nutzername" %% | |
20 | https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git | |
17 | =====1. Git Globale Standardeinstellungen ==== | |
18 | den Hauptnutzer und die dazugehörige E-Mail-Adresse als Standardeinstellung in der Konfigurationsdatei für die Gesamtheit der auf Deinem Rechner gespeicherten Repositorys. | |
21 | 19 | |
22 | Globale E-Mail | |
23 | %%(cl) git config --global user.email "webmaster@example.com" %% | |
24 | ||
25 | ||
26 | https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address | |
27 | ||
28 | Globale Konfiguration überprüfen: | |
29 | %%(cl) git config --global --list --show-origin%% | |
30 | bzw. %%(cl) cat /home/(username)/.gitconfig%% | |
31 | ||
20 | Globaler Nutzer, Globale E-Mail und Globale Konfiguration überprüfen: | |
21 | %%(cl) git config --global user.name "Globaler Git-Nutzername" | |
22 | git config --global user.email "webmaster@example.com" | |
23 | git config --global --list --show-origin | |
24 | :q%% | |
32 | 25 | |
33 | 26 | |
34 | 27 | =====2. Ein leeres Git Repository initialisieren ==== |
… | … | … |
41 | 34 | Wechsele in Dein Arbeitsverzeichnis für Dein Repo |
42 | 35 | %%(cl) cd /home/(username)/Projekt/Lokal/(LokalerGitNutzername)/MeinWiki%% |
43 | 36 | |
44 | Lokalen GitNutzer Namen einrichten | |
45 | %%(cl) git config user.name "Vorname Name" %% | |
46 | ||
47 | E-Mail Adresse zum Lokalen GitNutzer einrichten | |
48 | %%(cl) git config user.email "user@example.com" %% | |
49 | ||
50 | Konfigurationsdatei für Dein Repository überprüfen: | |
51 | %%(cl) cat /home/(username)/Projekt/Lokal/(LokalerGitNutzername)/MeinWiki/.git/config%% | |
37 | Lokalen GitNutzer Namen und E-Mail Adresse zum Lokalen GitNutzer einrichten, Konfigurationsdatei für Dein Repository überprüfen: | |
38 | %%(cl) git config user.name "Vorname Name" | |
39 | git config user.email "user@example.com" | |
40 | cat /home/(username)/Projekt/Lokal/(LokalerGitNutzername)/MeinWiki/.git/config | |
41 | %% | |
52 | 42 | |
53 | 43 | Globale und lokale Nutzerkonten | Statusinformationen | |
54 | 44 |