Skip to content

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

License

Notifications You must be signed in to change notification settings

suhailroushan13/GitHub-SubFolder-Cloner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

GitHub-SubFolder-Cloner 📁⬇️

Github licence

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 [email protected]: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 - Idea & Initial work
  • @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 ++

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages