Github Syncer. Clones or Pulls all GitHub repos (owned and watched).
Latest commit 0fa34c0 Apr 19, 2016 @kennethreitz Merge pull request #11 from cameronhunter/patch-1
Fix typo in README
Failed to load latest commit information.
ghsync Use subprocess `check_output` to run git Jan 18, 2012
.gitignore generic gitignore Feb 21, 2011
LICENSE ISC Feb 21, 2011 Added Manifest includes file Feb 21, 2011
README.rst Fix typo in README Apr 19, 2016
reqs.txt new reqs Apr 17, 2011
run_ghsync runner Apr 17, 2011 v0.3.1 Apr 17, 2011


ghsync: GitHub Repo Syncer

This script uses the GitHub API to get a list of all forked, mirrored, public, and private repos in your GitHub account. If the repo already exists locally, it will update it via git-pull. Otherwise, it will properly clone the repo.

It will organize your repos into the following directory structure:

+ repos
\ +-- forks    (public fork repos)
  +-- mirrors  (public mirror repos)
  +-- private  (private repos)
  +-- public   (public repos)
  +-- watched  (public watched repos)

Requires Ask Solem's github2 (

Inspired by Gisty (


To install ghsync, simply run:

$ pip install ghsync

The command ghsync will then be available to you from the command line. Beware, unless you set the GHSYNC_DIR environment variable, it will add all the repos to your current directory.:

$ export GHSYNC_DIR='~/repos/'


If the --upstream argument is passed, all forked repos will have an upstream remote added, pointing to their parent repo on GitHub.

You can also selectively sync certian types of repos with --only. If you'd like to only sync forked repositories, for example:

$ ghsync --only forks


If you'd like to contribute, simply fork the repository, commit your changes to the develop branch (or branch off of it), and send a pull request.