mirrorgit

Simple Script for Mirroring git Repos
git clone git://git.ckyln.com/mirrorgit.git
Log | Files | Refs | README | LICENSE

commit 82b20f4a901d0d0b81161e130a9dd20a112c02cf
parent 966ee66f39c43c99cdf68fc46c3717f130fa32b3
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 25 Sep 2019 11:05:16 +0300

markdown to plaintext

Diffstat:
AREADME | 29+++++++++++++++++++++++++++++
DREADME.md | 24------------------------
2 files changed, 29 insertions(+), 24 deletions(-)

diff --git a/README b/README @@ -0,0 +1,29 @@ +mirrorgit +========= + +Git mirroring script + +Setting up a git mirror is hard, especially if you are trying to mirror your repository to Microsoft's Github. Microsoft does not want you to self-host, so they don't present you with any option for mirroring. + +These problems may be solved if you use something like a post-receive hook, but not all self-hosted git repositories use vanilla git. This script is intended for solutions that do not give you the access to post-receive hooks, like Gitlab or Gitea. + +This shell script: +* Fetches your repositories to a temporary directory +* Pushes them to the mirror repository + +Pretty simple. + + +Usage +----- + +sh mirrorgit.sh + +The script creates a file on your home directory to save configuration and can be edited in ~/.mirrorgitrc + + +Dependencies +------------ +* Git (obviously) +* SSH keys deployed on the mirror repository + diff --git a/README.md b/README.md @@ -1,24 +0,0 @@ -# Git Mirroring Script - -Setting up a git mirror is hard, especially if you are trying to mirror your repository to Microsoft's Github. Microsoft does not want you to self-host, so they don't present you with any options for mirroring. - -This little shell script: -* Fetches the repositories to a temporary directory -* Pushes them to the mirror repository - -It is pretty simple. - -## Usage - -```shell -sh mirrorgit.sh -``` - -The script creates a file on your home directory to save configuration - -The file can be located and be edited in ~/.mirrorgitrc - -## Dependencies -* Git (obviously) -* SSH keys deployed on the mirror repository -