From 7af1dabab98e2aa818cd1befb8a7d0e3ed5e356d Mon Sep 17 00:00:00 2001 From: Talha Asghar Date: Thu, 26 Oct 2023 18:44:42 +0500 Subject: [PATCH] mention minimum git version required to use git filter-repo script (#29379) Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com> --- .../splitting-a-subfolder-out-into-a-new-repository.md | 7 +++++++ 1 file changed, 7 insertions(+) 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 4df0344c03..7d320ebb0d 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 @@ -14,6 +14,13 @@ versions: ghec: '*' shortTitle: Splitting a subfolder --- + +{% note %} + +**Note:** You need Git version 2.22.0 or later to follow these instructions, otherwise `git filter-repo` will not work. + +{% endnote %} + If you create a new clone of the repository, you won't lose any of your Git history or changes when you split a folder into a separate repository. However, note that the new repository won't have the branches and tags of the original repository. {% data reusables.command_line.open_the_multi_os_terminal %}