Git Product home page Git Product logo

reposync's Introduction

reposync

A script that syncs repos for a GitHub user or organization into a folder on your computer.

Motivation

As part of a GitHub organization, keeping up with new repos can be difficult. If repos are created, deleted, or renamed, the state of your local development environment falls of date.

reposync solves this by cloning all repos for a GitHub user or organization into a single folder. If the state of repos in GitHub changes, running reposync will clone any new repos and move any deleted repos into an archive folder. reposync only archives local copies of a repo, and it never modifies repos that you've already cloned, so there is no risk of losing data.

Install

Download the latest release from the releases page, extract the tar.gz, and put the binary in your path.

Usage

$ reposync -h
Usage of reposync:
  -archivedir string
    	Directory to move folders in dir that are not associated with a repo
  -dir string
    	Directory to put folders for each repo
  -dryrun
    	Set to true to print actions instead of performing them
  -org string
    	GitHub organization you'd like to sync a folder with. Must specify this or user
  -orgrepotype string
    	For the GitHub org, type of repos you'd like to pull. Can be all, public, private, forks, sources, member. Default is all. (default "all")
  -token string
    	GitHub token to use for auth
  -user string
    	GitHub user you'd like to sync a folder with. Must specify this or org
  -userrepoforks
    	For the GitHub user, include forks. Default is true. (default true)
  -userrepotype string
    	For the GitHub user, type of repos you'd like to pull. Can be all, owner, member. Default is all. (default "all")
  -version
    	Shows version and exits

reposync's People

Contributors

rgarcia avatar bgveenstra avatar azylman avatar johnhuangclever avatar nathanleiby avatar taylor-sutton avatar natebrennand avatar renatoprime avatar vhanda avatar xavi- avatar prime-time avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.