a simple tool to create a backup mirror for git repositories
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
git-sync.py

README.md

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