Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.89 KB

README.md

File metadata and controls

74 lines (51 loc) · 1.89 KB

git-cloner

Table of Contents

About

git-cloner is a command line tool to batch clone git projects from GitLab server.

Installing

  • Windows
  1. Install Python 2.7 or 3.4+:

    When installing, option Add python.exe to Path must be selected and enabled. Or after installation, manually add the Python installation directory and its Scripts subdirectory to your PATH. Depending on your Python version, the defaults would be C:\Python27 and C:\Python27\Scripts respectively.

  2. Install git-cloner via pip

    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ git-cloner
    
  3. Reboot the system

  • Linux
  1. Install Python 2.7 or 3.4+

  2. Install git-cloner via pip

    pip install -i https://mirrors.aliyun.com/pypi/simple/ git-cloner
    
  • MacOSX
  1. Install Python 2.7 or 3.4+

  2. Install git-cloner via pip

    pip install -i https://pypi.douban.com/simple/ git-cloner
    

Usage

  • General command help

    git-cloner --help
    usage: git-cloner [-h] -s <url> -u <user> -p <pass> [-g <group> [<group> ...]] [-o <path>]
    
    optional arguments:
      -h, --help            show this help message and exit
      -s <url>, --server <url>
                            The GitLab server url
      -u <user>, --user <user>
                            The GitLab login username
      -p <pass>, --pass <pass>
                            The GitLab login password
      -g <group> [<group> ...], --group <group> [<group> ...]
                            Only clone the projects in this group(s)
      -o <path>, --output <path>
                            Clone projects to output directory