Skip to content

Remove .git from directory name #34435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ 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
```

1. Remove the temporary local repository you created earlier.

```shell
cd ..
rm -rf OLD-REPOSITORY.git
rm -rf OLD-REPOSITORY
```

## Mirroring a repository that contains {% data variables.large_files.product_name_long %} objects
Expand All @@ -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.
Expand All @@ -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
Expand Down