How to add code in Github

Once you have created your repository in Github, you have to add your codes in order to develop and collaborate with other developers.

You can see how to create Repository in Github.

First open your Github for Windows application.

Then you will see your repository you have created in Github.com.

There you will find a Clone option. Cloning your repository means you are synchronizing your repository with your local machine.

Now clone it.

 

Add project in Github

                                         Add code in Github

 

When clone is complete, double click on the repository.

Then from Tools menu select Open in explorer.

 

Add project in Github

                                           Add code in Github

 

This will open the folder in your local machine where the repository is synced.

 

Add project in Github

                                       Add code in Github

 

Now paste your folder containing code here. For example I am pasting my project folder called MyProject.

 

Add project in Github

                                     Add code in Github

 

Now come back to your Github for Windows application.

 

Now you can see it’s showing uncommitted changes. That means you have made some changes in your local folder.

Give some commit message and click commit.

 

Add project in Github

                                    Add code in Github

 

After commit you need to sync your commit with Github online server.

Now click sync.

 

Add project in Github

                                    Add code in Github

 

After sync, it will show in sync.

 

Add project in Github

                                       Add code in Github

 

Now your code is uploaded.