degitlab
v0.0.6
Published
English | [简体中文](./README.zh-CN.md)
Downloads
5
Readme
English | 简体中文
degitlab
🫥 Helps you easily clone project files for self-managed GitLab.
Configuration
Since self-managed git usually come with authentication, so we need to add personal access token.
You don't need to set it if you have already logged in locally.
# ~/.gitconfig
[core]
degitlabPAT = <personal access token>
degitlabHost = <host>
Usage
// Use the project name to clone the project and automatically filter the .git directory.
degitlab -n degitlab
// Specify the path to clone, default is current directory.
degitlab -n degitlab -o ./dist
// Filter the directory.
degitlab -n degitlab -o ./dist -f /src/index.ts
// Filter the multiple directories.
degitlab -n degitlab -o ./dist -f /src/index.ts -f /src/index2.ts
// Help.
degitlab -h