Adding an existing project to GitHub using GitHub Desktop

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

  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

Ask a human

Can't find what you're looking for?

Contact us