Skip to content

Commit efc9d4c

Browse files
authored
remove .git for example folder (#5016)
1 parent 4d7e0bb commit efc9d4c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

content/github/creating-cloning-and-archiving-repositories/duplicating-a-repository.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Before you can duplicate a repository and push to your new copy, or _mirror_, of
2323
```
2424
3. Mirror-push to the new repository.
2525
```shell
26-
$ cd <em>old-repository</em>.git
26+
$ cd <em>old-repository</em>
2727
$ git push --mirror https://{% data variables.command_line.codeblock %}/<em>exampleuser</em>/<em>new-repository</em>.git
2828
```
2929
4. Remove the temporary local repository you created earlier.
3030
```shell
3131
$ cd ..
32-
$ rm -rf <em>old-repository</em>.git
32+
$ rm -rf <em>old-repository</em>
3333
```
3434

3535
### Mirroring a repository that contains {% data variables.large_files.product_name_long %} objects
@@ -41,7 +41,7 @@ Before you can duplicate a repository and push to your new copy, or _mirror_, of
4141
```
4242
3. Navigate to the repository you just cloned.
4343
```shell
44-
$ cd <em>old-repository</em>.git
44+
$ cd <em>old-repository</em>
4545
```
4646
4. Pull in the repository's {% data variables.large_files.product_name_long %} objects.
4747
```shell
@@ -58,7 +58,7 @@ Before you can duplicate a repository and push to your new copy, or _mirror_, of
5858
7. Remove the temporary local repository you created earlier.
5959
```shell
6060
$ cd ..
61-
$ rm -rf <em>old-repository</em>.git
61+
$ rm -rf <em>old-repository</em>
6262
```
6363

6464
### Mirroring a repository in another location
@@ -72,7 +72,7 @@ If you want to mirror a repository in another location, including getting update
7272
```
7373
3. Set the push location to your mirror.
7474
```shell
75-
$ cd <em>repository-to-mirror</em>.git
75+
$ cd <em>repository-to-mirror</em>
7676
$ git remote set-url --push origin https://{% data variables.command_line.codeblock %}/<em>exampleuser</em>/<em>mirrored</em>
7777
```
7878

0 commit comments

Comments
 (0)