-
使用命令行,删除当前为仓库配置的任何 Git 远程。
# 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
-
单击工具栏上的 Publish Repository(发布仓库)按钮。
-
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.
-
使用命令行,删除当前为仓库配置的任何 Git 远程。
# 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
-
单击工具栏上的 Publish Repository(发布仓库)按钮。
-
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.