You can also create repository in non-empty directory.
There are two type of git config: global configuration and local (per repository) configuration.
Global configuration is in $HOME/.gitconfig.
Local configuration is in .git/config.