1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 21:22:09 +02:00
tldr/pages.de/common/git-config.md
K.B.Dharun Krishna 5c26174aa9
pages/*: update links and more info link script (#11390)
* pages/*: update links and more info link script

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: reformat code

* ax-webapp: fix link

* curl: fix false positive

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2023-11-06 23:14:12 +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 --list --local`
- Liste nur globale Konfigurationseinträge (gespeichert unter `~/.gitconfig`) auf:
`git config --list --global`
- Liste nur System-Konfigurationseinträge (gespeichert unter `/etc/gitconfig`) und deren Speicherort auf:
`git config --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 --edit`
- Bearbeite die globale Git-Konfiguration mit dem Standard-Editor:
`git config --global --edit`