I'm looking for a way to clone a git repository, e.g. from GitHub, and include the owner or organization in the folder structure of the download.
For example, when cloning repository angular-cli
from organization angular
in the current folder, I'd like to have it clone it like this in my current working directory: angular/angular-cli
.
I have tried googling for a solution but couldn't find one, because basically all results where just telling me how to clone a repository. Of course I can do that, but I would like to have some tool that helps me automate this process. Maybe a bash or powershell script, or even something built into git directly.
Edit: In contrast to the other question, I'm looking for a tool that automatically places the repository in the right folder structure, based on the source, e.g. Github, and the user/organization e.g. Angular.
git clone
makes is the name you supply:git clone ssh://example.com/path/to/angular-cli.git angular/angular-cli
, for instance. So just supply the desired path...