git
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| git [2022-08-25 13:16:40] – [Windows] david | git [2024-06-03 12:12:13] (aktuell) – manfred | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Git ====== | ====== Git ====== | ||
| + | |||
| + | Hilfe: | ||
| + | > git --help | ||
| + | > git status | ||
| + | > git pull | ||
| + | > git add * | ||
| + | > git push | ||
| + | > git commit -m " | ||
| Git repository klonen (SSH & HTTPS): | Git repository klonen (SSH & HTTPS): | ||
| Zeile 9: | Zeile 17: | ||
| > git config --system init.defaultBranch main | > git config --system init.defaultBranch main | ||
| - | Es gibt 3 Konfigurationsmöglichkeiten: | + | Es gibt 3 Konfigurationsmöglichkeiten: |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| ===== Git Konfiguration ===== | ===== Git Konfiguration ===== | ||
| + | |||
| + | |||
| + | ==== Pfade ==== | ||
| + | |||
| + | * **Wichtig**: | ||
| + | * mehr Informationen: | ||
| + | * Einstellungen nachvollziehen: | ||
| + | |||
| + | ^ Scope ^ Allgemein | ||
| + | | System | ||
| + | | Global | ||
| + | | Local | '' | ||
| + | | Worktree | '' | ||
| + | |||
| + | * System: unter linux gibt diese beiden verbreiteten pfade: ''/ | ||
| + | * Global: '' | ||
| + | * Local: standard, wenn man keine option angibt (z.B. '' | ||
| + | * Worktree: sehr selten genutzt, siehe docs | ||
| Zeile 185: | Zeile 209: | ||
| ==== Linux ==== | ==== Linux ==== | ||
| - | < | + | < |
| [include] | [include] | ||
| - | path = gitconfig.d/ | + | path = .gitconfig.d/ |
| - | path = gitconfig.d/ | + | path = .gitconfig.d/ |
| [core] | [core] | ||
| abbrev = 16 | abbrev = 16 | ||
| Zeile 199: | Zeile 223: | ||
| preloadindex = true | preloadindex = true | ||
| editor = code --wait | editor = code --wait | ||
| - | attributesfile = gitattributes | + | attributesfile = .gitattributes |
| [init] | [init] | ||
| defaultBranch = main | defaultBranch = main | ||
| Zeile 242: | Zeile 266: | ||
| </ | </ | ||
| - | < | + | < |
| [alias] | [alias] | ||
| a = add | a = add | ||
| Zeile 263: | Zeile 287: | ||
| </ | </ | ||
| - | < | + | < |
| [user] | [user] | ||
| name = Username | name = Username | ||
| Zeile 273: | Zeile 297: | ||
| ==== Windows ==== | ==== Windows ==== | ||
| - | folgende Änderungen an der Linux Konfiguration vornehmen: | + | **Achtung**: keine vollständige Konfiguration, nur Änderungen gegenüber der Datei für Linux! |
| - | | + | |
| - | <code ini gitconfig> | + | Folgende Änderungen an der Linux Konfiguration vornehmen: |
| + | |||
| + | Diese Änderungen sind optional: | ||
| + | * '' | ||
| + | * Um das Diff- bzw. Merge-Tool von Visual Studio zu benutzen: '' | ||
| + | |||
| + | <code ini .gitconfig> | ||
| [http] | [http] | ||
| sslbackend = schannel | sslbackend = schannel | ||
| [gpg] | [gpg] | ||
| program = " | program = " | ||
| + | [diff] | ||
| + | tool = vsdiffmerge | ||
| + | [merge] | ||
| + | tool = vsdiffmerge | ||
| + | [difftool " | ||
| + | cmd = \" | ||
| + | keepBackup = false | ||
| + | [mergetool " | ||
| + | cmd = \" | ||
| + | keepBackup = false | ||
| + | trustExitCode = true | ||
| + | |||
| </ | </ | ||
| Zeile 372: | Zeile 413: | ||
| ==== GPG konfigurieren ==== | ==== GPG konfigurieren ==== | ||
| - | siehe [[gpg|GPG]] | + | siehe [[::EDV:GPG (GnuPG)]] |
| gpg programm unter linux: | gpg programm unter linux: | ||
/home/http/wiki/data/attic/git.1661433400.txt · Zuletzt geändert: von david
