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 | in Deinem Arbeitsverzeichnis fĂĽr Dein Repo | ||
| 34 | 36 | ||
| 37 | %%(cl) git config user.name "Vorname Name" %% | ||
| 38 | %%(cl) git config user.email "user@example.com" %% | ||
| 35 | 39 | ||
| 36 | 40 | Konfigurationsdatei fĂĽr Dein Repository ĂĽberprĂĽfen: | |
| 37 | Nutzer fĂĽr Dein Lokales Repo: in Deinem Repo | 41 | %%(cl) cat /home/(username)/Projekt/Lokal/(LokalerGitNutzername)/MeinWiki/.git/config%% |
| 38 | |||
| 39 | %%(cl) git config user.name "Lokaler Git-Nutzername" %% | ||
| 40 | |||
| 41 | |||
| 42 | |||
| 43 | 42 | ||
| 44 | Globale und lokale Nutzerkonten | Statusinformationen | | 43 | Globale und lokale Nutzerkonten | Statusinformationen | |
| 45 | 44 | ||
| 46 | ====Mit dem Repository arbeiten==== | 45 | ====Mit dem Repository arbeiten==== |
| 47 | ((!/../git-Directory)) | 46 | ((!/../git-Directory)) |
| 47 | |||
| 48 | |||
| 49 | |||
| 50 | |||
| 48 | 51 | ||
| 49 | =====Statusinformationen== | 52 | =====Statusinformationen== |
| 50 | git config anzeigen | git remote | git status | git log | | 53 | git config anzeigen | git remote | git status | git log | |