From 0a623caece38d23cdd03ff0c6234f5896d19a397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vilius=20Juod=C5=BEiukynas?= <30282958+viliusddd@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:56:51 +0300 Subject: [PATCH] Remove .git from directory name By default, `git clone` creates a directory with the same name as the repository, but it does not append `.git` to the directory name. --- .../duplicating-a-repository.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/repositories/creating-and-managing-repositories/duplicating-a-repository.md b/content/repositories/creating-and-managing-repositories/duplicating-a-repository.md index cc77c335dad4..e091dbf9b177 100644 --- a/content/repositories/creating-and-managing-repositories/duplicating-a-repository.md +++ b/content/repositories/creating-and-managing-repositories/duplicating-a-repository.md @@ -37,7 +37,7 @@ Before you can push the original repository to your new copy, or _mirror_, of th 1. Mirror-push to the new repository. ```shell - cd OLD-REPOSITORY.git + cd OLD-REPOSITORY git push --mirror https://{% data variables.product.product_url %}/EXAMPLE-USER/NEW-REPOSITORY.git ``` @@ -45,7 +45,7 @@ Before you can push the original repository to your new copy, or _mirror_, of th ```shell cd .. - rm -rf OLD-REPOSITORY.git + rm -rf OLD-REPOSITORY ``` ## Mirroring a repository that contains {% data variables.large_files.product_name_long %} objects @@ -60,7 +60,7 @@ Before you can push the original repository to your new copy, or _mirror_, of th 1. Navigate to the repository you just cloned. ```shell - cd OLD-REPOSITORY.git + cd OLD-REPOSITORY ``` 1. Pull in the repository's {% data variables.large_files.product_name_long %} objects. @@ -85,7 +85,7 @@ Before you can push the original repository to your new copy, or _mirror_, of th ```shell cd .. - rm -rf OLD-REPOSITORY.git + rm -rf OLD-REPOSITORY ``` ## Mirroring a repository in another location