Skip to content

ixxie/bergmirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Codeberg → GitHub mirror

bergmirror

A small badge for repositories developed on Codeberg and mirrored to GitHub — with a magic link that always sends visitors to the other platform. Click the badge on Codeberg, land on GitHub. Click it on GitHub, land on Codeberg. No duplicate badges, no manual switching.

Badge

Codeberg → GitHub mirror

Usage

Place the badge at the top-right, above your title:

<div align="right">
  <a href="https://ixxie.codeberg.page/bergmirror/redirect/?cb=USER/REPO&gh=USER/REPO"><img src="https://ixxie.codeberg.page/bergmirror/badge.svg" alt="Codeberg → GitHub mirror"/></a>
</div>

# Your project title

Fill in:

  • cb=<codeberg-user>/<codeberg-repo> — your canonical Codeberg location
  • gh=<github-user>/<github-repo> — your GitHub mirror (can differ in user and repo name)

The link goes through a tiny redirect page on Codeberg Pages that bounces you to the other platform from the one you're currently viewing:

  • Viewing on Codeberg → redirects to the GitHub mirror
  • Viewing on GitHub → redirects to the Codeberg canonical

If JavaScript is disabled, the redirect page shows fallback links to both.

About

[Mirror] Tiny badge SVG marking repos as Codeberg → GitHub mirrors

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages