Versionsunterschiede von Git / Ein Eigenes Repository Einrichten
| 13 | |
|---|---|
| 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 |
| 17 | |
| 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 |
| 21 | |
| 22 | Globale E-Mail |
| 23 | %%(cl) git config --global user.email " |
| 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 | |
| 32 | |
| 33 | |
| 34 | =====2. Ein leeres Git Repository initialisieren ==== |
| 35 | Nachfolgende Anweisung erstellt das Verzeichnis /Lokal/Nutzername/MeinWiki im Projektordner in Deinem Homeverzeichnis, sowie einen versteckten .git Ordner im Unterverzeichnis ../../MeinWiki. |
| 36 | |
| 37 | %%(cl) git init /home/(username)/Projekt/Lokal/(LokalerGitNutzername)/MeinWiki%% |
| 38 | |
| 39 | |
| 40 | Nutzer fĂĽr Dein Lokales Repo: |
| 41 | Wechsele in Dein Arbeitsverzeichnis fĂĽr Dein Repo |
| 42 | %%(cl) cd /home/(username)/Projekt/Lokal/(LokalerGitNutzername)/MeinWiki%% |
| 43 | |
| 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%% |
| 52 | |
| 53 | Globale und lokale Nutzerkonten | Statusinformationen | |
| 54 | |
| 55 | ====Mit dem Repository arbeiten==== |
| 56 | ((!/../git-Directory)) |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | =====Statusinformationen== |
| 63 | git config anzeigen | git remote | git status | git log | |