Creating a Git repository on Github

Next, create a Git repository. If you're not signed in to Github, sign in.

Move to the Git repository creation screen

To move to the Git repository creation screen, click "New repository" of "+" on the upper right.

Create a Git repository

Enter the project name and press the "Create repository" button.

Check "Private" if you want to keep your project private so that no one else can see it.

If successful, the following screen will be displayed.

This completes the Git repository on Github.

Public key registration

The next step you need to do is register your public key. In order to reflect the repository to Github on the SSH protocol, it is necessary to perform public key authentication.

You can also push / pull the repository with HTTPS, but you will be asked for the password every time you push, so it is recommended to register the public key and use the SSL protocol when developing.

Reflect the existing local Github repository in the repository on Github

To reflect the existing local Github repository to the repository on Github, execute the following command described in the repository creation success screen.

Click SSH for the URL tab.

git remote add origin git@github.com:shinshina-kimoto/fudousan_app.git
git push -u origin master

For information on creating a local Git repository, please refer to the following.

Associated Information