git Github:如何将自己的项目添加到“组织”帐户?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8157615/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 06:10:26  来源:igfitidea点击:

Github: How do I add my own projects to an "organization" account?

gitgithubcollaboration

提问by cboettig

I have started collaborating on a series of projects with several developers on github, and we recently created an organization with it's own "organization" type account on github. I see that I can fork repositories of my collaborators into the organization account using the usual fork menu, but of course I cannot fork my own account.

我已经开始与 github 上的几位开发人员合作开展一系列项目,我们最近在 github 上创建了一个拥有自己“组织”类型帐户的组织。我看到我可以使用通常的 fork 菜单将我的合作者的存储库 fork 到组织帐户,但我当然不能 fork 我自己的帐户。

What is the expected workflow to import my existing repositories into the organizational account? (I presume I could fork projects hosted by the other members, but not my own?)

将我现有的存储库导入组织帐户的预期工作流程是什么?(我想我可以分叉其他成员主持的项目,但不能分叉我自己的项目?)

采纳答案by Andy

As long as it is under the same user, you can do it through the repositories admin page. Thisgithub help page goes into a little more detail.

只要是在同一个用户下,你就可以通过存储库管理页面来完成。 这个github 帮助页面更详细一些。

回答by jhilden

In the updated github UI all you need to do is go to your project and click "Fork" and then it will ask you if you want to fork into an organization that you are an admin of.

在更新的 github UI 中,您需要做的就是转到您的项目并单击“Fork”,然后它会询问您是否要分叉到您是其管理员的组织。

Way simple, just not easy to find.

方法简单,就是不容易找到。

回答by thodorisbais

  • Navigate to the Settingstab of your repository:
  • 导航到Settings存储库的选项卡:

enter image description here

在此处输入图片说明

  • Scroll down to the Danger Zoneand click Transfer:
  • 向下滚动到Danger Zone并单击Transfer

enter image description here

在此处输入图片说明

  • After reading the warnings,provide the name of the repository that you want to transfer and the specific organisation that the repository is going to be transferred to and click I understand, transfer this repository:
  • 阅读警告后,提供您要转移的存储库的名称以及存储库将转移到的特定组织,然后单击I understand, transfer this repository

enter image description here

在此处输入图片说明

  • Done! You 'll then be notified that you action will take effect in a few minutes:
  • 完毕!然后,您会收到通知,您的操作将在几分钟后生效:

enter image description here

在此处输入图片说明

For more details, you can always refer to the official documentation.

更多详细信息,您可以随时参考官方文档

回答by manojlds

You can move a repo you own to an organization on which you have admin access: http://help.github.com/move-a-repo/

您可以将您拥有的存储库移动到您具有管理员访问权限的组织:http: //help.github.com/move-a-repo/