How to create a *mirror* repo on GitHub.com #168067
Replies: 7 comments 6 replies
-
|
mirror repo |
Beta Was this translation helpful? Give feedback.
-
|
If you want to mirror a repo, have your repo git remote add github https://github.com/your-username/your-repo.git git push --mirror github Let me know if this helps at all. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
built-in option for the “Public mirror” badge (that label is usually applied internally by GitHub for projects like Chromium). Here’s how you can mirror a repo yourself: Create a new empty repo on GitHub (no README, .gitignore, or license). Clone the upstream repo as a mirror: git clone --mirror https://original-repo-url.git Push it to your GitHub repo: git remote set-url --push origin https://github.com/your-username/your-repo.git To update the mirror in future: git fetch -p origin 👉 The “Public mirror” badge you see on some repos isn’t user-controlled, it’s applied by GitHub itself. You can still maintain your own synced mirror using the above steps, even though it won’t show that badge. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
To send a mirror of your repo to another do this, and now you can add the changes if necessary and push git push --mirror new |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I can't find any further information about the Public mirror badge.
Warning
Don't tell me to use
git push --mirror. It never adds a badge.Beta Was this translation helpful? Give feedback.
All reactions