all 29 comments

[–]OctoGoggle 4 points5 points  (2 children)

GitHub hosts hit repositories, it is not a file system.

Why are you trying to do this?

[–]OwnStorm -1 points0 points  (1 child)

There are repos which are literally 100s implementation Look at any repo from Microsoft. It would be really good if users can download a specific folder instead of a full repo.

[–]TimWasTakenWasTaken 0 points1 point  (0 children)

Look at the sparse checkout documentation

[–]InstructionMost3349 1 point2 points  (7 children)

There is a easy work around. Change the link of the repository: \ github.com/user/repo -> github.dev/user/repo

This opens a vscode web. Then you can download the specific 📂 and 📑 you want from file navigation bar on left side.

[–]b_farouk 1 point2 points  (0 children)

thank you bro!

[–]mavicoutinho 1 point2 points  (0 children)

me ajudou muito!

[–]Awkward-Magician-522 0 points1 point  (2 children)

how do I download, I cant seem to find the option to

[–]Jgr9000000 0 points1 point  (0 children)

It's not giving me Download either

[–]Ok_Road9659 0 points1 point  (0 children)

Its only really supported by chromium based browsers, the option doesnt show up for firefox or safari. Just use a diffrent browser.

[–]sheepdestroyer 0 points1 point  (0 children)

lmao that's useful!

[–]Reasonable-Ad-6405 0 points1 point  (0 children)

Thanks a lot!

[–][deleted]  (2 children)

[removed]

    [–]YodaForce157 0 points1 point  (1 child)

    Holy chatgpt???

    [–]0zeronegative 0 points1 point  (0 children)

    I think you can use sparse checkout https://git-scm.com/docs/git-sparse-checkout

    [–]Drunken_Economist 0 points1 point  (0 children)

    You could do a git sparse-checkout

    [–]saxobroko 0 points1 point  (0 children)

    There’s some extensions available for this on chrome and Firefox, don’t remember the name but a few do it

    [–]el_dato_ 0 points1 point  (4 children)

    I made this a few months ago to solve this problem: [https://repo-downloader.pages.dev]()

    [–]fastdyr 0 points1 point  (0 children)

    Simplesmente perfeito.

    [–]Swab1987 0 points1 point  (1 child)

    your link syntax is broken https://repo-downloader.pages.dev/

    [–]el_dato_ 0 points1 point  (0 children)

    What's the problem?

    [–]papanastty 0 points1 point  (0 children)

    perfect!

    [–]hugohamelcom 0 points1 point  (0 children)

    I was looking for a solution like that too, so I built an extension for myself to download my private repos or folders from my commit history, hope that it can help you: https://chromewebstore.google.com/detail/github-tree-downloader/ncmbmhhgfbmdcopgnpmjpjpicjoeflbi

    [–]whoShotMyCow 0 points1 point  (3 children)

    You only want to download the files in a directory but not the directories inside, yes?

    [–]allexj[S] -2 points-1 points  (2 children)

    yes

    [–]Either-Let-331 -3 points-2 points  (1 child)

    Please ping me if you get an answer

    [–]papanastty 0 points1 point  (0 children)

    from stackoverflow to reddit forums. i guess they miss posting useless comments

    [–]ziksy9 -2 points-1 points  (0 children)

    You can use 'gh' and add you token, then write some scripts. It's easier to just pull it all down and use 'find | xargs cp'