Web Island Agency

How to add an existing project to GitHub account

How to add an existing project to GitHub account
How to add an existing project to GitHub account

Before starting the project make sure you’ve got your GitHub account connected to your local Git. If not, follow the guide to set up Git and GitHub connection.

Github is an excellent service for sharing your projects. It is well suited to collaborate on the project with other developers, as well. This article describes how to upload a project to GitHub:

  1. Create a new repository in your Github account;
  2. Fill in name and description fields, then pick either public or private repository;
  3. In the terminal navigate to your project directory;
  4. Initialize Git repository with the command (if not initialized):
    git init
  5. Add all files of the project to Git staging:
    git add .
  6. Commit the staged files and add a short commit message:
    git commit -m "Implement new feature"
  7. Copy the remote repository URL on the Quick Setup page of the newly-created repository;
  8. Add remote URL to the local repository. Remote repository URL defines where changes are pushed:
    git remote add origin REPLACE-WITH-YOUR-REPOSITORY-URL
  9. Push local changes to the remote repository on the GitHub:
    git push origin master


Under no circumstances "commit" or "push" sensitive information such as SSH keys, PIN and credit card numbers, passwords, etc.

Now you can share your work or collaborate with your teammates. Your project is available on GitHub.

Join the discussion!

The article is published under the tags

Read more articles related to the topic