Skip to content

Mirror your starred and public Github repos to a Gitea organization

Notifications You must be signed in to change notification settings

Askill/github-mirror

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}"

About

Mirror your starred and public Github repos to a Gitea organization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 89.9%
  • Dockerfile 10.1%