Code Monkey home page Code Monkey logo

github-mirror's Introduction

Mirror your starred and public Github repos to a private Git(tea) organization

Inspiration for this script:

Proposal: Mirror an entire github organization into gitea organization

Usage

Create one or two organiations in gittea, e.g. starred and personal or just one mirror organisation. Create an application token to use as Access_token

The script runs forever, every 12 hours it executes API calls to retrieve either your starred or public repositories and mirrors them to your local gitea( or forks from this project) server.

Feel free to change it to a one time only script and calling it in a cronjob.

Docker Compose

edit .env the way you need it

docker-compose up --build

Bash

export LOCAL_GIT_ACCESS_TOKEN="your_access_token"
export LOCAL_GIT_URL="your_git_url"
export GIT_USER="your_git_user"
export TARGET_ORG="your_target_org"
export MODE="your_mode"

bash github-git-mirror.sh "${GIT_USER}" "${TARGET_ORG}" "${MODE}"

github-mirror's People

Contributors

juergenhoetzel avatar askill avatar orthros avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.