Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
2a067bd2
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2a067bd2
编写于
9月 09, 2019
作者:
M
Matt Penna
提交者:
Achilleas Pipinellis
9月 09, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Docs: Clarified note for preferred integration method
上级
20fc3f66
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
12 deletion
+17
-12
doc/user/project/import/github.md
doc/user/project/import/github.md
+17
-12
未找到文件。
doc/user/project/import/github.md
浏览文件 @
2a067bd2
...
...
@@ -6,14 +6,15 @@ your self-hosted GitLab instance.
## Overview
NOTE:
**Note:**
While these instructions will always work for users on GitLab.com, if you are an
administrator of a self-hosted GitLab instance, you will need to enable the
[
GitHub integration
][
gh-import
]
in order for users to follow the preferred
import method described on this page. If this is not enabled, users can alternatively import their
GitHub repositories using a
[
personal access token
](
#using-a-github-token
)
from GitHub,
but this method will not be able to associate all user activity (such as issues and pull requests)
with matching GitLab users. As an administrator of a self-hosted GitLab instance, you can also use
the
[
GitHub rake task
](
../../../administration/raketasks/github_import.md
)
to import projects from
These instructions work for users on GitLab.com, but if you are an
administrator of a self-hosted GitLab instance or if you are importing from GitHub Enterprise,
you must enable
[
GitHub integration
][
gh-import
]
. GitHub integration is the only method for
importing from GitHub Enterprise. If you are using GitLab.com, you can alternatively import
GitHub repositories using a
[
personal access token
](
#using-a-github-token
)
,
but this method is not recommended because it cannot associate all user activity
(such as issues and pull requests) with matching GitLab users.
If you are an administrator of a self-hosted GitLab instance, you can also use the
[
GitHub rake task
](
../../../administration/raketasks/github_import.md
)
to import projects from
GitHub without the constraints of a Sidekiq worker.
The following aspects of a project are imported:
...
...
@@ -76,7 +77,7 @@ User-matching attempts occur in that order, and if a user is not identified eith
the user account that is performing the import.
NOTE:
**Note:**
If you are using a self-hosted GitLab instance
, this process requires that you have configured the
If you are using a self-hosted GitLab instance
or if you are importing from GitHub Enterprise, this process requires that you have configured
[
GitHub integration
][
gh-import
]
.
1.
From the top navigation bar, click
**+**
and select
**New project**
.
...
...
@@ -88,9 +89,13 @@ If you are using a self-hosted GitLab instance, this process requires that you h
### Using a GitHub token
NOTE:
**Note:**
For a proper author/assignee mapping for issues and pull requests, the
[
GitHub integration method (above)
](
#using-the-github-integration
)
should be used instead of the personal access token. If you are using GitLab.com or a self-hosted GitLab instance with the GitHub
integration enabled, that should be the preferred method to import your repositories. Read more in the
[
How it works
](
#how-it-works
)
section.
Using a personal access token to import projects is not recommended. If you are a GitLab.com user,
you can use a personal access token to import your project from GitHub, but this method cannot
associate all user activity (such as issues and pull requests) with matching GitLab users.
If you are an administrator of a self-hosted GitLab instance or if you are importing from
GitHub Enterprise, you cannot use a personal access token.
The
[
GitHub integration method (above)
](
#using-the-github-integration
)
is recommended for all users.
Read more in the
[
How it works
](
#how-it-works
)
section.
If you are not using the GitHub integration, you can still perform an authorization with GitHub to grant GitLab access your repositories:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录