By default, the special Git files are started in ./.git/, located at the root of the working tree.
However, this is only the default behavior. It is not difficult to separate the two:
|Git directory||Working tree|
|other||git clone --separate-git-dir|
file called .git
git init --bare
git config core.bare
This setup is required to be able to have remote repos push to this one.