-
使用命令行,删除当前为仓库配置的任何 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(发布仓库)按钮。
-
在 Name(名称)字段中键入所需的仓库名称,或者使用默认的当前本地仓库名称。
-
要发布公共仓库,请取消选择 Keep this code private(保留此代码为私有)。
-
从 Organization(组织)下拉菜单中选择要发布仓库到其中的组织,或者选择 None(无)以将仓库发布到您的个人帐户。
-
单击 Publish Repository(发布仓库)按钮。
-
使用命令行,删除当前为仓库配置的任何 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(发布仓库)按钮。
-
在 Name(名称)字段中键入所需的仓库名称,或者使用默认的当前本地仓库名称。
-
要发布公共仓库,请取消选择 Keep this code private(保留此代码为私有)。
-
从 Organization(组织)下拉菜单中选择要发布仓库到其中的组织,或者选择 None(无)以将仓库发布到您的个人帐户。
-
单击 Publish Repository(发布仓库)按钮。