Code Monkey home page Code Monkey logo

git-utils's Introduction

git-utils

Bulk clone git repositories from your GitHub account/organization (using GitHub CLI) by typing clone_repos.

Update all the git repositories in a folder by typing update_repos.

Header

Setup

  1. Install GitHub CLI (necessary for clone_repos)
  2. Add the functions to your shell configuration file (e.g., ~/.zshrc for zsh shell) by either:
    1. Copying the desired functions from bulk-utils.sh directly
    2. Importing it by adding: source /path/to/git-utils/bulk-utils.sh
  3. Reload the shell settings by typing source ~/.zshrc or close and reopen the terminal

Usage

Clone all repositories for a giver user/org

Navigate to the desired folder and type:

clone_repos <user> <access_token>

When an access_token is provided, it will automatically download all the repos in a fully unattended mode.

When an access_token is NOT provided, it will prompt the user to authenticate to GitHub and will assume that SSH is the preferred method for cloning the repos.

Udate all git repositories in a folder

Navigate to the desired folder and type:

update_repos

git-utils's People

Contributors

lluissm 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.