mt-empty / git-clone-subdirectory

Clones git subdirectories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-clone-subdirectory

This is a simple tool to clone only subdirectories, it utilizes git sparse-checkout feature

May not work properly on Gitlab because sparse-checkout is EXPERIMENTAL.

Git version requirement

2.25.0 or later

Install

git clone https://github.com/mt-empty/git-clone-subdirectory.git && cd git-clone-subdirectory 
make install

Usage

$ git-clone-subdirectory <repository> [path_to_subdirectory]

DISCLAIMER

Please do not use this in production.

About

Clones git subdirectories

License:MIT License


Languages

Language:Shell 76.9%Language:Makefile 23.1%