Note: The use of .git is for the conformity with the other .git folders that are created in the repository. You can name the folder whatever you would like.

Change to the new directory. cd example.git

Then type: git --bare init

Note: The reason for using the --bare is to mark it as the primary repository for this git project. init stands for initialize.
That will have setup the repository for you to push to.
To learn more on how to use Git, please go to Git - Documentation.