gh-download
gh-download copied to clipboard
How to download just a folder but not creating a parent directory?
For example, I want to download Sweet-cursors folder I used this command:
gh download EliverLara/Sweet -b nova kde/cursors/Sweet-cursors
But instead only Sweet-cursors folder, the result is as below:
kde
\__cursors
\__Sweet-cursors
Can you help me on this?
The default will reserved repo dir path, but you can use the the --outdir option to specify a directory
For example:
gh download https://github.com/EliverLara/Sweet/tree/nova/kde/cursors/Sweet-cursors --outdir Sweet-cursors
It will only remove kde/cursors prefix
gh download https://github.com/EliverLara/Sweet/tree/nova/kde/cursors/Sweet-cursors --outdir otherdir
With rename Sweet-cursors to otherdir
You can use --dry-run to output the information to help you confirm before you download
Thanks, this works!