Code Monkey home page Code Monkey logo

orgsync's Introduction

OrgSync

A command-line tool that keeps all repositories in a GitHub organization or from a GitHub User up-to-date. Simply provide the GitHub organization/username, and OrgSync will clone new repositories and fetch changes for already cloned ones.

OrgSync Demo

Features

  • Clone New Repos: Clones all repositories that are not yet present locally.
  • Fetch Changes: Fetches changes from the origin remote for already cloned repositories.
  • Concurrency: Syncs all repositories concurrently for speed.

Prerequisites

  • Go (version 1.22.2 or later)
  • GitHub CLI (gh)
  • Git (installed and available in your PATH)

Installation

  1. Install GitHub CLI (gh):
    brew install gh
    gh auth login
  2. Install OrgSync:
    • Clone this repository
    git clone https://github.com/jdmcgrath/orgsync.git
    cd orgsync 
    • Build and install the OrgSync tool
    go install ./cmd/orgsync
    • Ensure that the GOBIN or GOPATH/bin directory is in your system's PATH:
    export PATH=$PATH:$(go env GOPATH)/bin
    • Verify that OrgSync is installed by running:
    orgsync --version

Usage

Basic Usage

orgsync <your-github-org>

Example

orgsync openai

Notes

  • The tool will display progress in your terminal and allow you to quit with q.

Development

Running locally

  1. Clone this repository
git clone https://github.com/jdmcgrath/orgsync.git
cd orgsync 
  1. Install dependencies
go get ./...
  1. Build and run
go run ./cmd/orgsync <your-github-org>

Contributing

We welcome contributions! Here's how you can get involved:

Fork this repository Create a feature branch: git checkout -b my-new-feature Commit your changes: git commit -m 'Add some feature' Push to your branch: git push origin my-new-feature Create a new Pull Request

orgsync's People

Contributors

jdmcgrath-az avatar

Stargazers

 avatar

Watchers

 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.