Advertisement
molik

Git | Konfiguracja

Feb 24th, 2016 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 1.20 KB | Source Code | 0 0
  1. Flagi:
  2. --global : flaga global - ustawia dane dla wszystkich repozytoriów w obrębie zalogowanego użytkownika
  3. --system : flaga system - ustawia dane dla wszystkich użytkowników systemu, niezależnie od użytkownika, który jest aktualnie zalogowany
  4. --local  : flaga system - ustawia dane tylko dla tego jednego repozytorium
  5.  
  6. git config --global user.name "Jan Kowalski"
  7. git config --global user.email "jankowalski@example.com"
  8. git config --global color.ui true
  9.  
  10. Tym poleceniem możemy podejrzeć co ustawiliśmy:
  11. git config --list
  12.  
  13. Zmiana domyślnego edytora:
  14. git config --global core.edutor kwrite
  15.  
  16. Kolorowanie składni - ustawnienie dla użytkowników
  17. git config --global color.ui always
  18. git config --global color.branch auto
  19. git config --global color.diff auto
  20. git config --global color.interactive auto
  21. git config --global color.status auto
  22.  
  23.  
  24. Opcjonalnie:
  25. Add to your .gitconfig file next code:
  26.  
  27. [color]
  28.     ui = auto
  29. [color "branch"]
  30.     current = yellow reverse
  31.     local = yellow
  32.     remote = green
  33. [color "diff"]
  34.     meta = yellow bold
  35.     frag = magenta bold
  36.     old = red bold
  37.     new = green bold
  38. [color "status"]
  39.     added = yellow
  40.     changed = green
  41.     untracked = cyan
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement