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