yodamad / heimdall

A CLI to help with your git directories
Apache License 2.0
6 stars 0 forks source link

🛤️ Clone repo following remote path #7

Open maximestevenot opened 2 weeks ago

maximestevenot commented 2 weeks ago

In a declared SOURCE_FOLDER I want to clone a repository respecting the path in the remote server. Particularly useful for large Gitlab organizations.

Example of shell implementation here

yodamad commented 2 weeks ago

@maximestevenot : thank you for the idea

What I have in mind, let me know if it fits

heimdall git-clone -r /home/work/ -u https://github.com/yodamad/heimdall.git

This will lead to cloning the repository in /home/work/yodamad/heimdall

In a first time, available for a single project, but we can easily imagine passing a group / organization in the -u parameter to clone all projects of the given element in the -r directory

Does it fit your need ? 😉

maximestevenot commented 2 days ago

Hey, not necessarily cloning all projects of the given remote path. Often lot of draft projects polluting folders.. 😏

For the local path, in my current implementation, the source folder is a config element and cloning a remote repo is : clone the repo, respecting the full path, at root of source folder. So for the user only one parameter which is the remote path.