mirrorgit

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

README (868B)


      1 mirrorgit
      2 =========
      3 
      4 Git mirroring script
      5 
      6 Setting up a git mirror is hard, especially if you are trying to mirror 
      7 your repository to Microsoft's Github. Microsoft does not want you to 
      8 self-host, so they don't present you with any option for mirroring.
      9 
     10 These problems may be solved if you use something like a post-receive 
     11 hook, but not all self-hosted git repositories use vanilla git. 
     12 This script is intended for solutions that do not give you the access 
     13 to post-receive hooks, like Gitlab or Gitea.
     14 
     15 This shell script:
     16 * Fetches your repositories to a temporary directory
     17 * Pushes them to the mirror repository
     18 
     19 Pretty simple.
     20 
     21 
     22 Usage
     23 -----
     24 
     25 sh mirrorgit.sh
     26 
     27 The script creates a file on your home directory to save configuration 
     28 and can be edited in ~/.mirrorgitrc
     29 
     30 
     31 Dependencies
     32 ------------
     33 * Git (obviously)
     34 * SSH keys deployed on the mirror repository
     35