Skip to content

Commit 762fa63

Browse files
authored
Update provider.md
Corrected git commands to use mirror as flags
1 parent 3ffd78e commit 762fa63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/docs/provider.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ If your code is on a Git provider that is not compatible with your new host, you
2727
1. **Create a New Repository:** Start by creating a new, empty repository on the target Git provider (e.g., GitLab, Bitbucket).
2828
2. **Mirror the Repository:** This is most commonly done via the command line. You perform a "bare clone" of your existing repository and then "mirror-push" it to the new repository's address. The general commands are:
2929
```bash
30-
git clone --bare [https://old-provider.com/user/repo.git](https://old-provider.com/user/repo.git)
31-
cd repo.git
32-
git push --mirror [https://new-provider.com/user/new-repo.git](https://new-provider.com/user/new-repo.git)
30+
git clone --mirror https://old-provider.com/user/old-repo.git
31+
cd old-repo
32+
git push --mirror https://new-provider.com/user/new-repo.git
3333
```
3434
3. **Confirm the Move:** Once complete, your repository is fully duplicated on the new Git provider, and you can proceed with the migration.
3535

0 commit comments

Comments
 (0)