From bf3afaca3b96784ae4560243b965f0b0e759745e Mon Sep 17 00:00:00 2001 From: Koray Ulusan <65815347+KorayUlusan@users.noreply.github.com> Date: Wed, 16 Nov 2022 18:04:30 +0100 Subject: [PATCH 1/2] fix typo: 'git filter-repo' -> 'git-filter-repo' Presumably a typo. `git` doesn't have a `filter-repo` option. However `git-filter-repo` is a program (as linked in the docs). --- .../splitting-a-subfolder-out-into-a-new-repository.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md b/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md index 672cc126985d..0f52f9d697f7 100644 --- a/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md +++ b/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md @@ -30,7 +30,7 @@ If you create a new clone of the repository, you won't lose any of your Git hist $ cd REPOSITORY-NAME ``` -5. To filter out the subfolder from the rest of the files in the repository, run [`git filter-repo`](https://github.com/newren/git-filter-repo), supplying this information: +5. To filter out the subfolder from the rest of the files in the repository, run [`git-filter-repo`](https://github.com/newren/git-filter-repo), supplying this information: - `FOLDER-NAME`: The folder within your project where you'd like to create a separate repository. {% windows %} @@ -44,7 +44,7 @@ If you create a new clone of the repository, you won't lose any of your Git hist {% endwindows %} ```shell - $ git filter-repo --path FOLDER-NAME1/ --path FOLDER-NAME2/ + $ git-filter-repo --path FOLDER-NAME1/ --path FOLDER-NAME2/ # Filter the specified branch in your directory and remove empty commits > Rewrite 48dc599c80e20527ed902928085e7861e6b3cbe6 (89/89) > Ref 'refs/heads/BRANCH-NAME' was rewritten From d250477afa22af3067d55b5704cd0efacc99fb7b Mon Sep 17 00:00:00 2001 From: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com> Date: Fri, 18 Nov 2022 15:43:03 +0000 Subject: [PATCH 2/2] Apply suggestions from code review --- .../splitting-a-subfolder-out-into-a-new-repository.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md b/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md index 0f52f9d697f7..95dee0189fd2 100644 --- a/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md +++ b/content/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository.md @@ -30,7 +30,7 @@ If you create a new clone of the repository, you won't lose any of your Git hist $ cd REPOSITORY-NAME ``` -5. To filter out the subfolder from the rest of the files in the repository, run [`git-filter-repo`](https://github.com/newren/git-filter-repo), supplying this information: +5. To filter out the subfolder from the rest of the files in the repository, install [`git-filter-repo`](https://github.com/newren/git-filter-repo), then run `git filter-repo` with the following arguments. - `FOLDER-NAME`: The folder within your project where you'd like to create a separate repository. {% windows %} @@ -44,7 +44,7 @@ If you create a new clone of the repository, you won't lose any of your Git hist {% endwindows %} ```shell - $ git-filter-repo --path FOLDER-NAME1/ --path FOLDER-NAME2/ + $ git filter-repo --path FOLDER-NAME1/ --path FOLDER-NAME2/ # Filter the specified branch in your directory and remove empty commits > Rewrite 48dc599c80e20527ed902928085e7861e6b3cbe6 (89/89) > Ref 'refs/heads/BRANCH-NAME' was rewritten