GithubHelp home page GithubHelp logo

spekulatius / bulk-repo-cloner Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 10 KB

A small collection of scripts to run mass updates on GitHub repos

Home Page: https://releasecandidate.dev

Shell 100.00%
bitbucket git-clone git-cloner github gitlab infosec bash git osint osint-tool

bulk-repo-cloner's Introduction

Bulk Repo Cloner for GitHub, GitLab and BitBucket

A set of bash scripts to interact with a repos from GitHub, BitBucket, and GitLab. In addition, you can use clone-by-url to clone repos based on any repo URL.

clone-by-url

clone-by-url is a bash script that allows you to clone repositories from BitBucket, GitHub, or GitLab based on the provided URL. The script will automatically determine the Git service based on the provided URL and use the corresponding commands to clone the repository.

Usage

./clone-by-url <repo_url> [target_directory]
  • <repo_url>: The URL of the repository you want to clone. It can be from BitBucket, GitHub, or a GitLab instance.
  • [target_directory] (optional): The target directory where the repository will be cloned. If not provided, the repository will be cloned to the current directory.

Examples

Example #1:

./clone-by-url https://github.com/spekulatius
# ... clones all repos of "spekulatius"

Example #2:

./clone-by-url https://github.com/spekulatius/bulk-repo-cloner/blob/master/README.md
# ... clones all repos of "spekulatius"

GitHub: github-clone-public-repos

This script allows you to clone all the public repositories from a GitHub profile. It utilizes the GitHub API to fetch repository URLs and clones them into a specified target directory or the current directory if not provided. If the repositories already exist in the target directory, the script will navigate into each directory and run git pull to update them.

Usage

./github-clone-public-repos <username> [target_directory]
  • <username>: The GitHub username for which you want to clone public repositories.
  • [target_directory] (optional): The directory where you want to clone the repositories. If not provided, the current directory will be used as the target directory.

Examples

Example #1:

./github-clone-public-repos spekulatius
# ... clones all repos of "spekulatius"

Example #2:

./github-clone-public-repos https://github.com/spekulatius/test/whatever/it/does/not/matter
# ... clones all repos of "spekulatius"

BitBucket: bitbucket-clone-public-repos

This script allows you to clone all the public repositories from a BitBucket profile. It utilizes the BitBucket API to fetch repository URLs and clones them into a specified target directory or the current directory if not provided. If the repositories already exist in the target directory, the script will navigate into each directory and run git pull to update them.

Usage

./bitbucket-clone-public-repos <username> [target_directory]
  • <username>: The BitBucket username for which you want to clone public repositories.
  • [target_directory] (optional): The directory where you want to clone the repositories. If not provided, the current directory will be used as the target directory.

GitLab: gitlab-clone-public-repos

This script allows you to clone all the public repositories from a GitLab instance. It requires you to provide the GitLab instance URL, username, and optionally a target directory. If you are referring to the regular GitLab use gitlab.com as instance URL. The script uses the GitLab API to fetch repository URLs from the provided instance URL and clones them into the specified target directory or the current directory if not provided. If the repositories already exist in the target directory, the script will navigate into each directory and run git pull to update them.

Usage

./gitlab-clone-public-repos <instance_url> <username> [target_directory]
  • <instance_url>: The URL of the GitLab instance from which you want to clone public repositories.
  • <username>: The GitLab username for which you want to clone public repositories.
  • [target_directory] (optional): The directory where you want to clone the repositories. If not provided, the current directory will be used as the target directory.

Examples

Example #1:

./gitlab-clone-public-repos gitlab.com/gabrielengel_gl/
# ... clones all repos of "gabrielengel_gl"

Example #2:

./gitlab-clone-public-repos https://github.com/gabrielengel_gl/test/whatever/it/does/not/matter
# ... clones all repos of "gabrielengel_gl"

bulk-repo-cloner's People

Contributors

spekulatius avatar

Watchers

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