Linux:
# git config --system core.editor nano # git config --global user.name "myname" # git config --global user.email "myname@o2.pl"
# cat /etc/gitconfig - ustawienia systemowe dla wszystkich [core] editor = nano # cat ~/.gitconfig - ustawienia dla użytkownika [user] name = myname email = myname@o2.pl
Lokalizacja plików konfiguracyjnych
--system : /etc/gitconfig --global : ~/.gitconfig bez opcji : project_dir/.git/config
Repozytorium w bieżącym katalogu/projekcie
# cd my_project/
# git init
Nowe repozytorium – tworzy katalog projektu i repozytorium .git
# git init my_project # cd my_project # ls -la drwxr-xr-x 1 test test 512 Oct 11 10:57 .git/ # ls -la .git/ -rw-r--r-- 1 test test 23 Oct 11 10:57 HEAD drwxr-xr-x 1 test test 512 Oct 11 10:57 branches -rw-r--r-- 1 test test 92 Oct 11 10:57 config -rw-r--r-- 1 test test 73 Oct 11 10:57 description drwxr-xr-x 1 test test 512 Oct 11 10:57 hooks drwxr-xr-x 1 test test 512 Oct 11 10:57 info drwxr-xr-x 1 test test 512 Oct 11 10:57 objects drwxr-xr-x 1 test test 512 Oct 11 10:57 refs # cat ./my_project/.git/config - ustawienia dla projektu [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true