# GitHub to Gitea Mirror πŸš€πŸ”„ [![GitHub Sponsors](https://img.shields.io/badge/Sponsor-GitHub%20Sponsors-blue?logo=github)](https://github.com/sponsors/kevinveenbirkenbach) [![Patreon](https://img.shields.io/badge/Support-Patreon-orange?logo=patreon)](https://www.patreon.com/c/kevinveenbirkenbach) [![Buy Me a Coffee](https://img.shields.io/badge/Buy%20me%20a%20Coffee-Funding-yellow?logo=buymeacoffee)](https://buymeacoffee.com/kevinveenbirkenbach) [![PayPal](https://img.shields.io/badge/Donate-PayPal-blue?logo=paypal)](https://s.veen.world/paypaldonate) [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](./LICENSE) [![Python Version](https://img.shields.io/badge/Python-3.x-blue.svg)](https://www.python.org/) [![GitHub Stars](https://img.shields.io/github/stars/kevinveenbirkenbach/github-to-gitea-mirror)](https://github.com/kevinveenbirkenbach/github-to-gitea-mirror/stargazers) **GitHub to Gitea Mirror** automatically detects repositories on GitHub that are not yet mirrored on Gitea and mirrors themβ€”ensuring that your codebase remains consistent across both platforms. ## πŸ”§ Features - **Auto-Detection:** Identifies GitHub repos missing on Gitea. - **Seamless Mirroring:** Automatically mirrors repositories using the Gitea API. - **Secure Authentication:** Utilizes environment variables and tokens for secure API access. ## πŸš€ Installation Install **GitHub to Gitea Mirror** via [Kevin's Package Manager](https://github.com/kevinveenbirkenbach/package-manager): ```bash pkgman install gigimi ``` ## πŸ› οΈ Setup & Usage 1. **Install Required Packages:** If you haven't already, install the required Python packages: ```bash pip install python-dotenv requests ``` 2. **Create a `.env` File:** In your project directory, create a `.env` file with the following content: ```bash GITHUB_USER=your_github_username GITEA_USER=your_gitea_username GITEA_TOKEN=your_gitea_token ``` 3. **Run the Script:** Execute the script to start mirroring: ```bash python main.py ``` ## πŸ™Œ Acknowledgements - Developed with guidance from [ChatGPT](https://chat.openai.com/). - Inspired by the need to maintain repository consistency across platforms. ## πŸ–‹οΈ Author **Kevin Veen-Birkenbach** - πŸ“§ [kevin@veen.world](mailto:kevin@veen.world) - 🌐 [https://www.veen.world/](https://www.veen.world/) ## πŸ“œ License This project is licensed under the GNU Affero General Public License v3.0. Please refer to the [LICENSE](./LICENSE) file for details. --- Happy mirroring! πŸŽ‰πŸ”„