Adding an existing project to GitHub using GitHub Desktop
You can add an existing Git repository to GitHub using GitHub Desktop.
-
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
-
Click the Publish repository button on the toolbar.
-
Type the desired name of the repository in the Name field or use the default current local repository name.
-
To publish a public repository, unselect Keep this code private.
-
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.
-
Click the Publish Repository button.
-
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
-
Click the Publish repository button on the toolbar.
-
Type the desired name of the repository in the Name field or use the default current local repository name.
-
To publish a public repository, unselect Keep this code private.
-
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.
-
Click the Publish repository button.