Git Product home page Git Product logo

gitlab_clone's Introduction

gitlab_clone Gem Version

Description

gitlab_clone allows you to clone repositories from a gitlab server's group using the gitlab api.

The itch I was scratching by writing this was that I was writing cookbooks for home and work. I wanted an easier way to download all of my cookbooks so that I could work with all of them at once and not have to break my flow by having to download depended cookbooks later. Anyone that has worked with chef knows that you can have a lot of repos comporising all of your cookbooks...

Your tokens for either Gitlab or Gitgub are stored in the settings of your user profile.

For gitlab it will be:

http://gitlab_server/profile/account

For github it will be:

https://github.com/settings/applications

Features

gitlab_clone currently features the following:

  • Github organization supprt. You can bring down all the repos in an organization that you have access to.
  • Default cloning of all repos that are in a group called Cookbooks.
  • Can pick what group you can download all the repos in that group from.
  • Will do a git pull if an existing repo has been detected.
  • Support for using either ssh or the web url to download.
  • List the repos in a group before cloning them.

Examples

Get a list of repos in a group named Home:

gitlab-clone -l -g Home

-------------------------------------------------------------------

The following 3 repo(s) were found in the group Home.

	Repo1
	Repo2
	Repo3

-------------------------------------------------------------------

Clone the repos in the group named Home:

gitlab-clone -w -g Home

-------------------------------------------------------------------

### Starting Web Clone Process Of The Group Home ###

Downloading 3 repo(s) into [HOME_DIR]/projects/Home

Repo1 directory exists, doing a git pull instead.
Cloning Repo2...
Cloning Repo3...

-------------------------------------------------------------------

Clone the repos in the group named Home from Github:

gitlab-clone -w -g Home -o

-------------------------------------------------------------------

### Starting Web Clone Process Of The Group Home ###

Downloading 3 repo(s) into [HOME_DIR]/projects/Home

Repo1 directory exists, doing a git pull instead.
Cloning Repo2...
Cloning Repo3...

-------------------------------------------------------------------

Installation

gem install gitlab_clone 
Will give you a command named gitlab-clone to use.

gitlab_clone's People

Contributors

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