1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-22 20:24:03 +02:00
tldr/pages.de/common/git-config.md
2025-08-17 11:12:49 +05:30

37 lines
1.2 KiB
Markdown

# git config
> Verwalten von benutzerdefinierten Optionen für Git Repositories.
> Diese Optionen können lokal (für das aktiven Repository) or global (für den aktiven Benutzer) sein.
> Weitere Informationen: <https://git-scm.com/docs/git-config>.
- Liste nur lokale Konfigurationseinträge (gespeichert unter `.git/config` im aktiven Repository) auf:
`git config {{[-l|--list]}} --local`
- Liste nur globale Konfigurationseinträge (gespeichert unter `~/.gitconfig`) auf:
`git config {{[-l|--list]}} --global`
- Liste nur System-Konfigurationseinträge (gespeichert unter `/etc/gitconfig`) und deren Speicherort auf:
`git config {{[-l|--list]}} --system --show-origin`
- Gib den Wert eines bestimmten Konfigurationseintrags aus:
`git config alias.unstage`
- Setze den globalen Wert eines bestimmten Konfigurationseintrags:
`git config --global alias.unstage "reset HEAD --"`
- Setze den globalen Wert eines bestimmten Konfigurationseintrags auf seinen Standardwert zurück:
`git config --global --unset alias.unstage`
- Bearbeite die Git-Konfiguration für das aktuelle Repository mit dem Standard-Editor:
`git config {{[-e|--edit]}}`
- Bearbeite die globale Git-Konfiguration mit dem Standard-Editor:
`git config --global {{[-e|--edit]}}`