In brief
git init creates the Git structures needed for a repository. It does not automatically record every existing file in an initial commit.
Useful to know
git init creates the Git structures needed for a repository. It does not automatically record every existing file in an initial commit. [1]
Review ignore rules and choose what enters the index. Secret settings and temporary archives should not be included merely because they sit in the project directory. A local repository also does not automatically create a remote address or public copy.
Sources
For further detail and to check the information: