Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Flagi:
- --global : flaga global - ustawia dane dla wszystkich repozytoriów w obrębie zalogowanego użytkownika
- --system : flaga system - ustawia dane dla wszystkich użytkowników systemu, niezależnie od użytkownika, który jest aktualnie zalogowany
- --local : flaga system - ustawia dane tylko dla tego jednego repozytorium
- git config --global user.name "Jan Kowalski"
- git config --global user.email "jankowalski@example.com"
- git config --global color.ui true
- Tym poleceniem możemy podejrzeć co ustawiliśmy:
- git config --list
- Zmiana domyślnego edytora:
- git config --global core.edutor kwrite
- Kolorowanie składni - ustawnienie dla użytkowników
- git config --global color.ui always
- git config --global color.branch auto
- git config --global color.diff auto
- git config --global color.interactive auto
- git config --global color.status auto
- Opcjonalnie:
- Add to your .gitconfig file next code:
- [color]
- ui = auto
- [color "branch"]
- current = yellow reverse
- local = yellow
- remote = green
- [color "diff"]
- meta = yellow bold
- frag = magenta bold
- old = red bold
- new = green bold
- [color "status"]
- added = yellow
- changed = green
- untracked = cyan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement