Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (14 sloc) 644 Bytes

git-sync: a simple tool to mirror git repositories

create git repository "cache"

git-sync.py -d /var/local/git-mirror/ https://github.com/sekimura/dotfiles

checkout from synced repo for readonly purpose.

git clone --local --shared \
    /var/local/git-mirror/github.com/sekimura/dotfiles \
    dotfiles-readonly

working repo to commit upstream

git clone --reference \
    /var/local/git-mirror/github.com/sekimura/dotfiles \
    git@github.com:sekimura/text-markdown-discount.git dotfiles

SEE ALSO:

http://www.jukie.net/bart/blog/git-caching