This script allows you to partially clone a Git repository by specifying a branch and a folder within the repository. It's particularly useful when you only want to work with a specific part of a repository and not clone the entire repository.
- Clones a specific branch from the repository
- Supports shallow cloning for faster cloning
- User input validation and error handling
brew tap BalliAsghar/apps
brew install pc
- Make sure you have git and wget installed on your system.
- Download the script and make it executable:
chmod +x pc
- Run the script:
./pc
- Follow the prompts to enter the repository URL, depth, branch, and folder you want to clone.