Skip to content

gtg2619/subclone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subclone

overview

Repository subdirectory cloning tool based on github api

install

TODO

usage

use as module

const subclone = require("subclone")

(async()=>{
// Use complete subdirectory URL which you want download
await subclone("https://github.com/gtg2619/gtg2619.github.io/tree/main/gitbook/images", {
    // Even for non-private repositories, this is generally necessary due to Github rate limits
    // generate it at https://github.com/settings/tokens
    "token": "xxxx",
    // optional customPath where you want store these file
    "customPath": "notgittbook"
    // Return the folder name until all promises resolve
}).then(folder_name=>console.log(folder_name))
})()

use in cli

subclone -u  https://github.com/gtg2619/gtg2619.github.io/tree/main/gitbook -t xxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxx -p notgit111tbook

About

Repository subdirectory cloning tool based on github api

Resources

License

Stars

Watchers

Forks

Packages

No packages published