Create a New Git Repository
You can initiate by creating a new Git repository if the code is not associated with Git. You can Select Git -> Create a Git Repository from the menu bar. Enter your information in the create a Git repository dialog box.
It is easy to push your new repository into GitHub in the Create a Git repository dialog box. The new repository is by default private. That means you can only one who can access it. If your repository makes public, so you have only unchecked the box, it means that anyone on GitHub can view it.
If you have a create a local-only Git repository by using the Local only option.
Figure : Create a repository