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 \
[email protected]:sekimura/text-markdown-discount.git dotfiles
SEE ALSO:
http://www.jukie.net/bart/blog/git-caching