1
0
mirror of synced 2025-12-23 21:07:12 -05:00

remove .git for example folder (#5016) (#18567)

This commit is contained in:
Octomerger Bot
2021-04-03 05:29:00 +10:00
committed by GitHub
parent 8a22cb1c61
commit 4c7346c371

View File

@@ -23,13 +23,13 @@ Before you can duplicate a repository and push to your new copy, or _mirror_, of
```
3. Mirror-push to the new repository.
```shell
$ cd <em>old-repository</em>.git
$ cd <em>old-repository</em>
$ git push --mirror https://{% data variables.command_line.codeblock %}/<em>exampleuser</em>/<em>new-repository</em>.git
```
4. Remove the temporary local repository you created earlier.
```shell
$ cd ..
$ rm -rf <em>old-repository</em>.git
$ rm -rf <em>old-repository</em>
```
### 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
```
3. Navigate to the repository you just cloned.
```shell
$ cd <em>old-repository</em>.git
$ cd <em>old-repository</em>
```
4. Pull in the repository's {% data variables.large_files.product_name_long %} objects.
```shell
@@ -58,7 +58,7 @@ Before you can duplicate a repository and push to your new copy, or _mirror_, of
7. Remove the temporary local repository you created earlier.
```shell
$ cd ..
$ rm -rf <em>old-repository</em>.git
$ rm -rf <em>old-repository</em>
```
### Mirroring a repository in another location
@@ -72,7 +72,7 @@ If you want to mirror a repository in another location, including getting update
```
3. Set the push location to your mirror.
```shell
$ cd <em>repository-to-mirror</em>.git
$ cd <em>repository-to-mirror</em>
$ git remote set-url --push origin https://{% data variables.command_line.codeblock %}/<em>exampleuser</em>/<em>mirrored</em>
```