Git Fetch Pro is a CLI tool that allows you to download specific folders from GitHub repositories.
You can use GitFetchPro in two ways:
You can run GitFetchPro directly without installing it:
npx gitfetchpro <url> [options]
To install the package globally using npm:
npm install -g gitfetchpro
-
<url>
: GitHub URL of the folder you want to clone.
-
-o, --output <directory>
: Specify the output directory. Defaults to the current working directory.
gitfetchpro https://github.com/YugBhanushali/git-fetch-pro/tree/main/client -o ./downloaded-folder
Or using npx
:
npx gitfetchpro https://github.com/YugBhanushali/git-fetch-pro/tree/main/client -o ./downloaded-folder
This command will clone the src
folder from the specified GitHub repository into the downloaded-folder
directory.