An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# GitHub-SubFolder-Cloner 📁⬇️
![Github licence](http://img.shields.io/badge/license-MIT-blue.svg)

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 ++