[Total: 0 Average: 0/5]
ghclone is a free command line instrument to clone subdirectories from git repositories. Consider it as a conventional git clone various however for subdirectory as effectively. You utilize it in the identical manner because the official clone command of Git and it’ll clone no matter path you specify within the subsequent argument. Git clones your complete listing from distant repo in your PC however ghclone will solely clone the desired listing as specified by you within the repository URL. You possibly can set up it immediately from the command line after which begin utilizing it immediately anytime you need.
Typically if you wish to have solely particular folder from a Git repository then you definately normally should clone your complete listing. Despite the fact that there are software or Chrome extensions to do the identical. However in case you are a terminal savvy sort of person then you’ll like ghclone. This can be a pretty easy instrument and solely helps the clone command for now. To do different issues within the listing that you’ve got already cloned, you will have the unique Git CLI.
Git Clone Subdirectories from Distant Git Repositories?
As a way to arrange ghclone, you’ll have to set up it first utilizing Python package deal supervisor. Just be sure you have Python put in and all you must do is run the next command. It is going to set up ghclone in your PC after which you can begin utilizing it.
pip set up git+git://github.com/HR/github-clone#egg=ghclone
Now, you simply use it in the identical manner as git clone command. As an alternative of Git repository, right here you must specify the report git listing or a subdirectory. It ought to work with all of the Git suppliers however in my case I examined it on GitHub.
ghclone "any git subdirectoy"
On this manner, you need to use this easy and highly effective instrument to git clone subfolders from distant Git repositories. The method may be very easy and easy and you need to use it anytime you need.
As a CLI git person I’m actually pleased to strive ghclone and the best way it really works. I someday should solely clone to a particular listing and this instrument makes that very simple. Now, from the terminal I can clone any subfolder or subdirectory from any Git repository by operating a easy command.