Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 22ec47b

Browse files
authored
Merge pull request #23548 from whorvath2/patch-1
Update importing-a-git-repository-using-the-command-line.md
2 parents 879db5f + 0bdf4d1 commit 22ec47b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
title: Importing a Git repository using the command line
2+
title: Importing an external Git repository using the command line
33
intro: '{% ifversion fpt %}If [GitHub Importer](/articles/importing-a-repository-with-github-importer) is not suitable for your purposes, such as if your existing code is hosted on a private network, then we recommend importing using the command line.{% else %}Importing Git projects using the command line is suitable when your existing code is hosted on a private network.{% endif %}'
44
redirect_from:
55
- /articles/importing-a-git-repository-using-the-command-line
66
- /github/importing-your-projects-to-github/importing-a-git-repository-using-the-command-line
77
- /github/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line
8+
- /get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line
89
versions:
910
fpt: '*'
1011
ghes: '*'
@@ -29,7 +30,7 @@ For purposes of demonstration, we'll use:
2930
{% endtip %}
3031

3132
1. [Create a new repository on {% data variables.product.product_name %}](/repositories/creating-and-managing-repositories/creating-a-new-repository). You'll import your external Git repository to this new repository.
32-
2. On the command line, make a "bare" clone of the repository using the external clone URL. This creates a full copy of the data, but without a working directory for editing files, and ensures a clean, fresh export of all the old data.
33+
2. On the command line, make a "bare" clone of the external repository using the external clone URL. This creates a full copy of the data, but without a working directory for editing files, and ensures a clean, fresh export of all the old data.
3334
```shell
3435
$ git clone --bare https://external-host.com/EXTUSER/REPO.git
3536
# Makes a bare clone of the external repository in a local directory

content/get-started/importing-your-projects-to-github/importing-source-code-to-github/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ children:
1717
- /about-github-importer
1818
- /importing-a-repository-with-github-importer
1919
- /updating-commit-author-attribution-with-github-importer
20-
- /importing-a-git-repository-using-the-command-line
20+
- /importing-an-external-git-repository-using-the-command-line
2121
- /adding-locally-hosted-code-to-github
2222
- /source-code-migration-tools
2323
shortTitle: Import code to GitHub

0 commit comments

Comments
 (0)