Skip to content

Commit 4be53a1

Browse files
lecoursentimrogersSiaraMist
authored
Deprecation announcement for non-Git repository imports in GitHub Importer (SVN, Mercurial, TFVC) (github#36378)
Co-authored-by: Tim Rogers <[email protected]> Co-authored-by: Siara <[email protected]>
1 parent aabaaf9 commit 4be53a1

19 files changed

+317
-167
lines changed

content/get-started/working-with-subversion-on-github/what-are-the-differences-between-subversion-and-git.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ SVN is configured to assume that the history of a project never changes. Git all
6868
## Further reading
6969

7070
- ["Branching and Merging" from the _Git SCM_ book](https://git-scm.com/book/en/Git-Branching-Basic-Branching-and-Merging)
71-
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/source-code-migration-tools)"
71+
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository)"

content/migrations/importing-source-code/using-github-importer/about-github-importer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ During an import, depending on the version control system you're importing from,
1919

2020
## Supported functionality by version control system
2121

22+
{% data reusables.migrations.github-importer-non-git-deprecation %}
23+
2224
{% rowheaders %}
2325

2426
| Import action | Subversion | Mercurial | TFVC | Git |
@@ -33,4 +35,3 @@ During an import, depending on the version control system you're importing from,
3335
## Further reading
3436

3537
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)"
36-
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/source-code-migration-tools)"

content/migrations/importing-source-code/using-github-importer/importing-a-repository-with-github-importer.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@ versions:
1212
ghec: '*'
1313
shortTitle: Import a repository
1414
---
15-
{% tip %}
1615

17-
**Tip:** GitHub Importer is not suitable for all imports. For example, if your existing code is hosted on a private network, our tool won't be able to access it. In these cases, we recommend [importing using the command line](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line) for Git repositories or an external [source code migration tool](/migrations/importing-source-code/using-the-command-line-to-import-source-code/source-code-migration-tools) for projects imported from other version control systems.
16+
## About repository imports with GitHub Importer
1817

19-
{% endtip %}
18+
GitHub Importer is not suitable for all imports. For example, if your existing code is hosted on a private network, our tool won't be able to access it. In these cases, we recommend [importing using the command line](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line) for Git repositories or an external [source code migration tool](/migrations/importing-source-code/using-the-command-line-to-import-source-code) for projects imported from other version control systems.
19+
20+
{% data reusables.migrations.github-importer-non-git-deprecation %}
2021

2122
If you'd like to match the commits in your repository to the authors' GitHub personal accounts during the import, make sure every contributor to your repository has a GitHub account before you begin the import.
2223

2324
{% data reusables.repositories.repo-size-limit %}
2425

26+
## Importing a repository with GitHub Importer
27+
2528
1. In the upper-right corner of any page, click {% octicon "plus" aria-label="Create new..." %}, and then click **Import repository**.
2629

2730
![Screenshot of the top-right corner of any page on {% data variables.product.prodname_dotcom %}. A plus icon is highlighted with an orange outline.](/assets/images/help/importer/import-repository.png)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: About source code imports using the command line
3+
intro: 'You can use command line tools to import source code and its revision history to {% data variables.product.product_name %}.'
4+
versions:
5+
fpt: '*'
6+
ghes: '*'
7+
ghae: '*'
8+
ghec: '*'
9+
shortTitle: About source code imports
10+
---
11+
12+
13+
{% ifversion fpt or ghec %}
14+
15+
If you want to import a Git repository that is stored on a code hosting service that is publicly available on the internet, we recommend using GitHub Importer. For more information, see "[AUTOTITLE](/migrations/importing-source-code/using-github-importer)."
16+
17+
If your source code is not tracked by Git or is not publicly available, you can use the command line instead.
18+
19+
{% else %}
20+
21+
You can use the command line to import source code and, if the code has been tracked using a version control system like Git, the code's revision history.
22+
23+
{% endif %}
24+
25+
- To import a Git repository that is stored on a code hosting service{% ifversion fpt or ghec %} that is not accessible from the public internet{% endif %}, see "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-an-external-git-repository-using-the-command-line)."
26+
- To import code that is only stored locally, and is either tracked by Git or not tracked by any version control system, see "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/adding-locally-hosted-code-to-github)."
27+
- To import code that is tracked by any version control system other than Git, first convert the repository to Git, then push the Git repository to {% data variables.product.product_name %}.
28+
{% ifversion fpt or ghec or ghae %}
29+
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository)"
30+
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-mercurial-repository)"
31+
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository)"
32+
{% else %}
33+
- End users can use third-party conversion tools.
34+
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository)"
35+
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-mercurial-repository)"
36+
- "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository)"
37+
- Site administrators can use the administrative shell. For more information, see "[AUTOTITLE](/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-from-other-version-control-systems-with-the-administrative-shell)."
38+
{% endif %}
39+
40+
All of these tools import source code and revision history, only. If you also want to import your settings and your collaboration history, such as issues and pull requests, you'll need to use more advanced tools. To determine the best tool to use for your migration, see "[AUTOTITLE](/migrations/overview/planning-your-migration-to-github)."

0 commit comments

Comments
 (0)