https://github.com/suhailroushan13/github-subfolder-cloner
Yes ..Now You Can Clone Subfolders From Any GitHub Repository . You can turn a folder within a Git repository into a brand new repository. ... If you create a new clone of the repository, you won't lose any of your Git history
https://github.com/suhailroushan13/github-subfolder-cloner
bash github shell shell-script
Last synced: 4 months ago
JSON representation
Yes ..Now You Can Clone Subfolders From Any GitHub Repository . You can turn a folder within a Git repository into a brand new repository. ... If you create a new clone of the repository, you won't lose any of your Git history
- Host: GitHub
- URL: https://github.com/suhailroushan13/github-subfolder-cloner
- Owner: suhailroushan13
- License: mit
- Created: 2022-09-04T10:58:38.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-27T18:53:33.000Z (over 3 years ago)
- Last Synced: 2025-09-26T07:32:06.729Z (9 months ago)
- Topics: bash, github, shell, shell-script
- Language: Shell
- Homepage: https://github.com/suhailroushan13/GitHub-SubFolder-Cloner
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub-SubFolder-Cloner 📁⬇️

Clone Subfolders From Any GitHub Repository ✅
## 🧐 About
GitHub-SubFolder-Cloner is a simple bash script that allows you to clone subfolders from any GitHub repository.
## 🏁 Getting Started
### Prerequisites
You need to have Ubuntu and GitHub installed on your system.
### Installing
Step 1:
```
git clone --depth=1 git@github.com:suhailroushan13/GitHub-SubFolder-Cloner.git ~/GitHub-SubFolder-Cloner
cd ~/GitHub-SubFolder-Cloner
chmod +x script.sh
bash script.sh
```
Step 2:
zsh (macOS **10.15**+)
```
echo 'alias git-sub="bash ~/GitHub-SubFolder-Cloner/script.sh"' >> ~/.zshrc
source ~/.zshrc
```
bash (Windows/Linux)
```
echo 'alias git-sub="bash ~/GitHub-SubFolder-Cloner/script.sh"' >> ~/.bashrc
source ~/.bashrc
```
To know which shell
```
echo $SHELL
```
## 🎈 Usage
Type the below command from anywhere to run the script.
```
git-sub
```
## ✍️ Authors
- [@suhailroushan13](https://github.com/suhailroushan13) - Idea & Initial work
- [@Abdul535](https://github.com/Abdul535) - Added Custom Folder Name Functionality
See also the list of contributors who participated in this project.
## 🎉 Acknowledgements
- Hat tip to anyone whose code was used
- Inspiration
- References
🟢 Visitor Count ++