Adding an existing project to GitHub using GitHub Desktop

You can add an existing Git repository to GitHub using GitHub Desktop.

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.

  1. Using the command line, remove any git remotes currently configured for the repository.

    # Show existing remotes
    $ git remote -v
    > origin	git@git-server/octocat/hello-world.git (fetch)
    > origin	git@git-server/octocat/hello-world.git (push)
    # Remove existing remotes
    $ git remote remove origin
  2. Add the repository to GitHub Desktop.

  3. Click the Publish repository button on the toolbar.

    The Publish repository button on the toolbar

  4. Type the desired name of the repository in the Name field or use the default current local repository name.

    The Name field

  5. To publish a public repository, unselect Keep this code private.

    Keep this code private checkbox

  6. Choose the organization in the Organization drop-down where you want to publish the repository, or select None to publish the repository to your personal account.

    Organization drop-down

  7. Click the Publish Repository button.

    The Publish repository button in the Publish Repository dialog

  1. Using the command line, remove any git remotes currently configured for the repository.

    # Show existing remotes
    $ git remote -v
    > origin	git@git-server/octocat/hello-world.git (fetch)
    > origin	git@git-server/octocat/hello-world.git (push)
    # Remove existing remotes
    $ git remote remove origin
  2. Add the repository to GitHub Desktop.

  3. Click the Publish repository button on the toolbar.

    The Publish repository button on the toolbar

  4. Type the desired name of the repository in the Name field or use the default current local repository name.

    The Name field

  5. To publish a public repository, unselect Keep this code private.

    Keep this code private checkbox

  6. Choose the organization in the Organization drop-down where you want to publish the repository, or select None to publish the repository to your personal account.

    Organization drop-down

  7. Click the Publish repository button.

    The Publish repository button in the Publish repository dialog

Did this doc help you?

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.