Versionsunterschiede von Git / Ein Eigenes Repository Einrichten
20 | https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git | 20 | https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git |
---|---|---|---|
21 | 21 | ||
22 | Globale E-Mail | 22 | Globale E-Mail |
23 |
%%(cl) git config --global user.email " |
23 | %%(cl) git config --global user.email "webmaster@example.com" %% |
24 | 24 | ||
25 | 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 | 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 | 27 | ||
28 | =====2. Ein leeres Git Repository initialisieren ==== | 28 | =====2. Ein leeres Git Repository initialisieren ==== |
29 |
Nachfolgende Anweisung erstellt das Verzeichnis |
29 | Nachfolgende Anweisung erstellt das Verzeichnis /Lokal/Nutzername/MeinWiki im Projektordner in Deinem Homeverzeichnis, sowie einen versteckten .git Ordner im Unterverzeichnis ../../MeinWiki. |
30 | 30 | ||
31 |
%%(cl) git init /home/(username)/Projekt/Lokal/ |
31 | %%(cl) git init /home/(username)/Projekt/Lokal/(LokalerGitNutzername)/MeinWiki%% |
32 | 32 | ||
33 | 33 | ||
34 | Nutzer fĂĽr Dein Lokales Repo: | ||
35 | Wechsele in Dein Arbeitsverzeichnis fĂĽr Dein Repo | ||
36 | %%(cl) cd /home/(username)/Projekt/Lokal/(LokalerGitNutzername)/MeinWiki%% | ||
34 | 37 | ||
38 | Lokalen GitNutzer Namen einrichten | ||
39 | %%(cl) git config user.name "Vorname Name" %% | ||
35 | 40 | ||
41 | E-Mail Adresse zum Lokalen GitNutzer einrichten | ||
42 | %%(cl) git config user.email "user@example.com" %% | ||
36 | 43 | ||
37 | Nutzer fĂĽr Dein Lokales Repo: in Deinem Repo | 44 | Konfigurationsdatei fĂĽr Dein Repository ĂĽberprĂĽfen: |
38 | 45 | %%(cl) cat /home/(username)/Projekt/Lokal/(LokalerGitNutzername)/MeinWiki/.git/config%% | |
39 | %%(cl) git config user.name "Lokaler Git-Nutzername" %% | ||
40 | |||
41 | |||
42 | |||
43 | 46 | ||
44 | Globale und lokale Nutzerkonten | Statusinformationen | | 47 | Globale und lokale Nutzerkonten | Statusinformationen | |
45 | 48 | ||
46 | ====Mit dem Repository arbeiten==== | 49 | ====Mit dem Repository arbeiten==== |
47 | ((!/../git-Directory)) | 50 | ((!/../git-Directory)) |
51 | |||
52 | |||
53 | |||
54 | |||
48 | 55 | ||
49 | =====Statusinformationen== | 56 | =====Statusinformationen== |
50 | git config anzeigen | git remote | git status | git log | | 57 | git config anzeigen | git remote | git status | git log | |