From 18257b0140884199b4ae3b931b628970a6289083 Mon Sep 17 00:00:00 2001 From: Bill Horvath II <1036333+whorvath2@users.noreply.github.com> Date: Sat, 28 Jan 2023 09:36:53 -0500 Subject: [PATCH 1/3] Update importing-a-git-repository-using-the-command-line.md Added some clarification in the line that tripped me up a bit while following these instructions. --- .../importing-a-git-repository-using-the-command-line.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line.md b/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line.md index 6c98dfe19900..b061bac7f1a0 100644 --- a/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line.md +++ b/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line.md @@ -1,5 +1,5 @@ --- -title: Importing a Git repository using the command line +title: Importing an external Git repository using the command line 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 %}' redirect_from: - /articles/importing-a-git-repository-using-the-command-line @@ -29,7 +29,7 @@ For purposes of demonstration, we'll use: {% endtip %} 1. [Create a new repository on {% data variables.product.product_name %}](/articles/creating-a-new-repository). You'll import your external Git repository to this new repository. -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. +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. ```shell $ git clone --bare https://external-host.com/EXTUSER/REPO.git # Makes a bare clone of the external repository in a local directory From 3376d1dc0a31b97956e0109da8bcad664cfdce6c Mon Sep 17 00:00:00 2001 From: Rachael Rose Renk <91027132+rachaelrenk@users.noreply.github.com> Date: Thu, 2 Feb 2023 11:08:54 -0700 Subject: [PATCH 2/3] renamed 1 files --- ...mporting-an-external-git-repository-using-the-command-line.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename content/get-started/importing-your-projects-to-github/importing-source-code-to-github/{importing-a-git-repository-using-the-command-line.md => importing-an-external-git-repository-using-the-command-line.md} (100%) diff --git a/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line.md b/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-an-external-git-repository-using-the-command-line.md similarity index 100% rename from content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line.md rename to content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-an-external-git-repository-using-the-command-line.md From 1884bbfb561453ad3020dac57a02a1d81737cd7c Mon Sep 17 00:00:00 2001 From: Rachael Rose Renk <91027132+rachaelrenk@users.noreply.github.com> Date: Thu, 2 Feb 2023 11:08:55 -0700 Subject: [PATCH 3/3] set redirect_from on 1 files --- ...porting-an-external-git-repository-using-the-command-line.md | 1 + .../importing-source-code-to-github/index.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-an-external-git-repository-using-the-command-line.md b/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-an-external-git-repository-using-the-command-line.md index b061bac7f1a0..b62bbc076457 100644 --- a/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-an-external-git-repository-using-the-command-line.md +++ b/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-an-external-git-repository-using-the-command-line.md @@ -5,6 +5,7 @@ redirect_from: - /articles/importing-a-git-repository-using-the-command-line - /github/importing-your-projects-to-github/importing-a-git-repository-using-the-command-line - /github/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line + - /get-started/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line versions: fpt: '*' ghes: '*' diff --git a/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/index.md b/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/index.md index b2555c235b23..073ba9dbcd96 100644 --- a/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/index.md +++ b/content/get-started/importing-your-projects-to-github/importing-source-code-to-github/index.md @@ -17,7 +17,7 @@ children: - /about-github-importer - /importing-a-repository-with-github-importer - /updating-commit-author-attribution-with-github-importer - - /importing-a-git-repository-using-the-command-line + - /importing-an-external-git-repository-using-the-command-line - /adding-locally-hosted-code-to-github - /source-code-migration-tools shortTitle: Import code to GitHub